[R] Why does length("") == 1?

Patrick Burns pburns at pburns.seanet.com
Fri Nov 11 16:55:58 CET 2011


'The R Inferno' Circle 8.1.66

http://www.burns-stat.com/pages/Tutor/R_inferno.pdf

On 11/11/2011 00:17, Worik R wrote:
> It seems obvious to me that the empty string "" is length 0.
>
> cheers
> Worik
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Patrick Burns
pburns at pburns.seanet.com
twitter: @portfolioprobe
http://www.portfolioprobe.com/blog
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')



More information about the R-help mailing list