search for: yearcat

Displaying 1 result from an estimated 1 matches for "yearcat".

2010 Sep 13
1
Transforming character vector
Hi guys, Cant seem to find a solution for this. I am looking for a substitute for cut that can transform character vectors. So as cut would be used below to transform YearCat-> YearCat2 base on Year and vector Ag<-c("00-'70","'71-'75","'76-'85","'86-'09") using 'cut ' FleetData$YearCat<-cut(FleetData$Year,c(0,1970,1975,1985,2009),labels=Ag) Make Year YearCat YearCat2 1...