[R] Replace <NA> with something else
eric
ericstrom at aol.com
Sun Nov 18 22:18:43 CET 2012
I am reading some data into R from an Excel spreadsheet using read.csv. Some
of the original data that comes into column 1 from the spreadsheet is text
that says NA. The NA stands for north america. As it comes in, R converts
the NA over to <NA>.
What is the cleanest way to change the <NA> values to something else. In
other words, get rid of the brackets ? Maybe convert <NA> to NAM.
635 LA 201207 557329
636 LA 201208 683771
637 LA 201209 613851
638 LA 201210 764217
639 LA 201211 212897
782 <NA> 200701 875634
783 <NA> 200702 614856
784 <NA> 200703 521520
785 <NA> 200704 1406400
--
View this message in context: http://r.789695.n4.nabble.com/Replace-NA-with-something-else-tp4649974.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list