[R] length of empty string

David Winsemius dwinsemius at comcast.net
Fri Nov 18 16:54:40 CET 2011


On Nov 18, 2011, at 10:09 AM, 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?

character(0) is not the same as ""


-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list