[R] Error creating named character vectors from column names in data frame.
Jorge Cimentada
cimentadaj at gmail.com
Fri Oct 7 18:20:29 CEST 2016
I'm sorry, there was a typo. The result is still the same:
c("a" = "b") # named character vector
class("a") # character
class("b") # character
c(names(mtcars)[1] = names(mtcars)[2]) # error
class(names(mtcars)[1]) # character
class(names(mtcars)[2]) # character
Thanks,
Jorge Cimentada
[[alternative HTML version deleted]]
More information about the R-help
mailing list