extractMeta | R Documentation |
Extract meta data (e.g. variable and values labels) from an eatGADS
object. This can be a GADSdat
, an all_GADSdat
,
a labels data.frame
, or the path to an existing data base.
extractMeta(GADSobject, vars = NULL)
GADSobject |
Either a |
vars |
A character vector containing variable names. If |
Meta data is stored tidily in all GADSdat
objects as a separate long format data frame. This information can be extracted for a single or
multiple variables.
Returns a long format data frame with meta information.
# Extract Meta data from data base
db_path <- system.file("extdata", "pisa.db", package = "eatGADS")
extractMeta(db_path, vars = c("schtype", "sameteach"))
# Extract Meta data from loaded/imported GADS
extractMeta(pisa, vars = c("schtype", "sameteach"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.