search for: naics2

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

Did you mean: naics
2009 Oct 13
3
Selecting initial numerals
II just want to create a new object with the first two numerals of the data. Not sure why this isnt working, consider the following: EmpEst$naics=c(238321, 624410, 484121 ,238911, 811111, 531110, 621399, 541613, 524210 ,236115 ,811121 ,236115 ,236115 ,621610 ,814110 ,812320) EmpEst$naics2<-formatC(EmpEst$naics %% 1e2, width=2, flag="", mode ="integer") #RESULT:Warning message: #In Ops.factor(EmpEst$naics, 100) : %% not meaningful for factors EmpEst$naics2<-format(EmpEst$naics,trim=FALSE,digits=2,width=2) #RESULT #Changes data to string I know this is s...