reflag | R Documentation |
This function allows you to change variable name ex: "M" to "Male".
reflag(
dat,
var,
orignal.flag,
new.flag = NULL,
newvar = NULL,
to.factor = T,
missing = c("", ".", "NA", NA)
)
dat |
data frame |
var |
Vector to be changed |
orignal.flag |
Original names ex:"M","F" |
new.flag |
New names ex:c"Male","Female" |
newvar |
Create new vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.