View source: R/add_factor_info.R
add_factor_info | R Documentation |
add_factor_info
searches a data.frame for labelr-specific factor meta-data,
which it records and retains for future use. It is used by other labelr
functions and need not be used directly by labelr end users.
add_factor_info(data)
data |
the data.frame to which you wish to add labelr-specific factor variable meta-data attributes (if any factors are present). |
a data.frame.
# this function does not strictly require prior or other use of labelr
ir2 <- add_factor_info(iris)
mt2 <- add_factor_info(mtcars)
get_factor_info(mtcars) # none
get_factor_info(iris) # none
get_factor_info(mt2) # none
get_factor_info(ir2) # some!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.