Two questions:

1.  I have a data frame named "data1" that includes the variable "old".  I want to 
create a sequence of new variables in the data frame called "old.1", "old.2", ... .  
I've tried a few "paste" commands, and creating a new data frame of the new variables, 
all to no avail.  Any advice?

2.  If I have a variable in a data frame, is there quick bit of code that creates a 
dummy variable for each level of that variable?

Thank you,
Ryan Moore 

        [[alternate HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to