I would like to convert columns 2 to 13 (last) from integer to numeric.
For a single column, I use the following code:
dades$V3 <- as.numeric(dades$V3)
I want to convert columns 2 to 13 using the same command. I create this vector:
dades<-2:13
Then how should I use lapply
?
source
share