[R] names function not working at the 2nd place in a program
zz
czhang at uams.edu
Fri Jul 27 17:48:49 CEST 2012
I just realize this:
For myVar1, I used colnames to name it firstly, and then convert myVar1 to
numeric;
However, I forgot to use rownames to name myVar2, instead I thought
as.numeric(names(myVar2)) would work.
Now I name myVar2 using rownames first, as.numeric(names(myVar2)) is
working.
Thank you for pointing the mistake.
--
View this message in context: http://r.789695.n4.nabble.com/names-function-not-working-at-the-2nd-place-in-a-program-tp4638004p4638122.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list