[R] how to convert 450 columns in a dataframe from numberic to character, but leave other columns unchanged?

2006-04-22 Thread zhongmiao wang
Hello, I can do it seperately, but there must be a method to convert the 450 columns together? By the way, Can R write a seriers of variable names in a short way, such as X1-X450? I can extract the 450 columns out and convert them to a character matrix, however, when I combined it back, they

Re: [R] how to convert 450 columns in a dataframe from numberic to character, but leave other columns unchanged?

2006-04-22 Thread Uwe Ligges
zhongmiao wang wrote: Hello, I can do it seperately, but there must be a method to convert the 450 columns together? Yes. By the way, Can R write a seriers of variable names in a short way, such as X1-X450? paste(X, 1:450, sep=) I can extract the 450 columns out and convert them to a