Description Usage Arguments Value Examples
this function topcodes one vector; it's used by the topcode
function to topcode a set of columns in a data frame
1 | 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
1 2 3 4 | ## Not run:
## TODO write example
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.