Jinsong Zhao
2011-Mar-07 07:38 UTC
[R] Error in colnames: target of assignment expands to non-language object
Hi there, I cannot find a detailed explanation to the following error message: > colnames(matrix(1:10, ncol = 2)) <- c("X", "Y") Error in colnames(matrix(1:10, ncol = 2)) <- c("X", "Y") : target of assignment expands to non-language object However, when I do the following things, the error message disappear: > z <- matrix(1:10, ncol = 2) > colnames(z) <- c("X","y") What's the difference between the two methods? Any comments or suggestions? Thank you very much in advance! Regards, Jinsong
Maybe Matching Threads
- when setting environment: target of assignment expands to non-language object
- target of assignment expands to non-language object
- eval and tcltk : target of assignment expands to non-language object
- write.csv covert Ă…land to <c5>land
- More than two font in a plot