[R] length of empty string
Rainer Schuermann
rainer.schuermann at gmx.net
Fri Nov 18 16:55:29 CET 2011
> nchar("")
[1] 0
On Friday 18 November 2011 16:09:38 Jaensch, Steffen [TIBBE] wrote:
> Hi all,
>
>
>
> Can somebody explain why length("") returns 1 and not 0? How do I test
> if a given string is the empty string?
>
>
>
> Thanks,
>
> Steffen.
>
>
>
>
>
>
>
>
> [[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.
More information about the R-help
mailing list