"" is a character vector with one element in it.
?nchar
?length
 

>>> 


From: Worik R <[email protected]>
To:r-help <[email protected]>
Date: 11/Nov/2011 1:21p
Subject: [R] Why does length("") == 1?
It seems obvious to me that the empty string "" is length 0.

cheers
Worik

[[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

Reply via email to