Displaying 1 result from an estimated 1 matches for "fleetdata".
2010 Sep 13
1
Transforming character vector
...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 DODG 2003 '86-'09 (2002,2003]
3 FORD 1995 '86-'09 (1994,1995]
5 JEP 1997 '86-'09 (1996,1997]
6 JEP 1997 '86-'09 (1996,1997]
7 DODG 2002 '86-'09 (...