Re: [R] Fw: split date and time

2013-04-12 Thread Ye Lin
Thanks! On Fri, Apr 12, 2013 at 3:30 PM, arun wrote: > > > > > - Forwarded Message - > From: arun > To: Ye Lin > Cc: > Sent: Friday, April 12, 2013 6:25 PM > Subject: Re: [R] split date and time > > > > Hi Ye, > > Is this okay? > > dat2<-cbind(dat1[,-2],do.call(rbind,strsplit(dat1[,2]

[R] Fw: split date and time

2013-04-12 Thread arun
- Forwarded Message - From: arun To: Ye Lin Cc: Sent: Friday, April 12, 2013 6:25 PM Subject: Re: [R] split date and time Hi Ye, Is this okay? dat2<-cbind(dat1[,-2],do.call(rbind,strsplit(dat1[,2]," ")),stringsAsFactors=FALSE)  dat2 #  Number Value    1    2 #1  1 1