I am trying to convert this:
> j[1:5] NA06985 NA06991 NA06993 NA06994 NA07000
In it:
c("NA06985","NA06991","NA06993", "NA06994", "NA07000")
I tried using as.character, but it gives me:
> as.character(j[1:5]) [1] "10" "10" "10" "10" "10"
Help me please! -Josh
EDIT: Okay, so I think I get it. After executing class (j), I found that it is of type data.frame. So I converted to as.matrix and it worked ... yes!
source share