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

>>> 


From: Worik R <worikr@gmail.com>
To:r-help <r-help@r-project.org>
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]]

______________________________________________
R-help@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.

	[[alternative HTML version deleted]]

