Entering edit mode
wang peter
★
2.0k
@wang-peter-4647
Last seen 10.2 years ago
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