topcode.var.Rd
this function topcodes one vector; it's used by the topcode
function to topcode a set of columns in a data frame
topcode.var(x, max, to.na = NULL, ignore = NA)
x | the vector of values to topcode |
---|---|
max | the maximum value; all values > max are recoded to max |
to.na | a vector of values to recode to NA (this happens before topcoding) |
ignore | a vector of values to leave unchanged |
the topcoded vector
if (FALSE) { ## TODO write example }