Displaying 1 result from an estimated 1 matches for "month_".
Did you mean:
months
2010 Oct 28
4
Alter character attribute
...ore efficient and possibly add the new attributes
(month/year) to the data frame on the fly.
Thanks guys....
#Create sample data
RawData2..<-data.frame(ID=c(22,44),period_end_date=c("9/10/2007
0:00:00","2/2/2006 0:00:00"))
#Create lists to store month and year results
Data.Month_<-list()
Data.Year_<-list()
#pull out year/month attribute at put in own column
for(i in 1:length(RawData2..$ID)){
#Select Record
Data.X<-RawData..[i,]
#Separate date into month, day, and year
DateSplit<-strsplit(Data.X$period_end_date,"/")
#Select mon...