Re: [R] Prefix

2015-11-09 Thread Val
HI Dennis and David Thank you very much! I really appreciate that. Now I am half way from my final goal. At the end what I would like is the following output. New_X1 New_X2 New_X3 Old X1 1 0 0 0_Abbot 2 0 0 1920_

Re: [R] Prefix

2015-11-08 Thread David Winsemius
> On Nov 8, 2015, at 4:05 PM, Val wrote: > > HI all, > > DF <- read.table(textConnection(" X1 X2 X3 TIME > Alex1 0 0 1960 > Alexa 0 01920 > Abbot 0 0 0 > Smith Alex1 Alexa2012 > Carla Alex1 01996 > Jacky

[R] Prefix

2015-11-08 Thread Val
HI all, DF <- read.table(textConnection(" X1 X2 X3 TIME Alex1 0 0 1960 Alexa 0 01920 Abbot 0 0 0 Smith Alex1 Alexa2012 Carla Alex1 01996 JackySmith Abbot2013 Jack 0 Jacky2014 Alm