sf_recode | R Documentation |
Recode statfin classifications from numeric codes to names or vice versa.
sf_code2name
and sf_name2code
and shortcuts to main
sf_recode
function.
sf_recode(x, from, to, ...)
sf_code2name(x, ...)
sf_name2code(x, ...)
x |
A vector for recoding. |
from |
A column name or position for orginal classification
in the classification data.frame. See |
to |
A column name or position for desidered classification
in the classification data.frame. See |
... |
futher parameters to |
It is best to use column postions for from
and to
.
The first should be a numeric code and the second a name.
sf_code2name()
: From code to name.
sf_name2code()
: From name to code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.