Hello everybody! I am trying to replace community numbers with community names (character). I am using the following code:
data[data$commNo==786, "commNo"]<-"Name of the Community" Unfortunately, I get the error message missing values are not allowed in subscripted assignments of data frames However, when I check data$commNo with table(useNA="always") or with table(is.na(data$commNo)) it tells me that there are no NA's at all... ? Can anyone help please? Thank you very much! David [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list 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.