拜托,我无法解决下一个问题:
str(state_table)
chr [1:54] "AK" "AL" "AR" "AZ" "CA" "CO" "CT" "DC" "DE" "FL" ...
z <- data.frame(stringsAsFactors=FALSE)
for (i in state_table){z <- rbind(z, c(i))}
此代码返回:
invalid factor level, NA generated
In `[<-.factor`(`*tmp*`, ri, value = "AL") :