R question. Using lappy on a data.frame and creating new variables w/ output.

Posted by Michael on Stack Overflow See other posts from Stack Overflow or by Michael
Published on 2010-05-09T16:36:25Z Indexed on 2010/05/09 16:38 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

Hello,

I have 13 quantitative variables in a data.frame (called 'UNCA').

The variables are named q01_a, q01_b, ...q01_m.

I want to create 13 new variables that have the same values but are coded as a factor.

I would like to name these 13 new variables q01_a.F, q01_b.F, ...q01_m.F.

Any help would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about statistics

Related posts about data.frame