search for: michonnneau

Displaying 1 result from an estimated 1 matches for "michonnneau".

Did you mean: michonneau
2006 Jun 27
1
change the class of an object within with()
..."e"), y = c("1","2","3","4","5")) str(xxx) with(xxx, { x <- as.character(x) y <- as.numeric(y) }) str(xxx) #no effect on the class of x and y xxx$x <- as.character(xxx$x) xxx$y <- as.numeric(xxx$y) str(xxx) Thanks Fran?ois Michonnneau