I can propose a strategy.

This example shows that there are different types of blanks when you
look at character data.

    as.character(c("", " ", "  ", "   "))

Your test for "" found only one of them.

Look at the data as read.csv produces it.  That will probably give you
some clues.

mydata <- read.csv("filename")

mydata

as.character(mydata)




Rich

______________________________________________
[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