Hi, thanks for you suggestion.
I finally solved it in a different way using apply and is.na for TRUE NA's and if(as.character(x) == "NA") etc. However, I just spotted that read.xls seems to have problems reading in special characters such as < or >. Is there any workaround for that? -- View this message in context: http://r.789695.n4.nabble.com/Deleting-rows-and-columns-containing-NA-s-and-only-tp4384173p4384663.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.