search for: _cat

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

Did you mean: _at
2013 Jan 08
2
Applying a user-defined function
...5/5)),include.lowest=TRUE) } #apply the CutQuintile () on every odd-numbered columns of the "test1" data frame newcols <- sapply(test1 [, seq (1,6,2)], CutQuintiles) # name 3 new columns based on the odd-numbered columns names(newcols) <- paste (names(test1 [, seq (1,6,2)]), "_cat") ###### Pradip K. Muhuri, PhD Statistician Substance Abuse & Mental Health Services Administration The Center for Behavioral Health Statistics and Quality Division of Population Surveys 1 Choke Cherry Road, Room 2-1071 Rockville, MD 20857 Tel: 240-276-1070 Fax: 240-276-1260 e-mail: Prad...