I read a csv file (with read.csv) containing missing values (as shown 
below). Is there a convenient way to set these NA into zeros?
Better yet, is there an option to assign zeros to these blank cells in 
reading the csv file? Thank you!

NA  -1  NA  NA  NA   1  NA
NA  NA  NA  NA  NA  NA  NA
NA  NA  NA  NA  NA  NA  NA
NA  -1  NA  NA  NA  NA  NA



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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