[BioC] how to replace NA by 1
wang peter
wng.peter at gmail.com
Fri Jan 20 04:31:05 CET 2012
i have a vector
> start
[1] 4 5 6 NA
i want to replace NA by 1
but that didnot work
gsub(NA, 1, as.character(start), ignore.case = T)
--
shan gao
Room 231(Dr.Fei lab)
Boyce Thompson Institute
Cornell University
Tower Road, Ithaca, NY 14853-1801
Office phone: 1-607-254-1267(day)
Official email:sg839 at cornell.edu
Facebook:http://www.facebook.com/profile.php?id=100001986532253
More information about the Bioconductor
mailing list