Displaying 1 result from an estimated 1 matches for "p_desc_no3".
2008 Jun 24
2
subscripting in data frames with NA
...13 0.549 0.915 10.416 ...
$ position_descrip: chr "2" "2" "2" NA ...
$ position_geo : chr "3" "0" "3" "3" ...
$ institution : Factor w/ 3 levels "digesa","mem",..: 3 3 3 3 3 3
3 3 3 3 ...
$ p_desc_no3 : chr "2" "2" "2" NA ...
$ p_geo_no3 : chr "3" "0" "3" "3" ...
I try to subscript but get:
> b3[b3[,3]=="3",5] <-NA
Error in `[<-.data.frame`(`*tmp*`, b3[, 3] == "3", 5, value = NA)...