extractMeta {eatGADS} | R Documentation |
Get Meta Data
Description
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.
Usage
extractMeta(GADSobject, vars = NULL)
Arguments
GADSobject |
Either a |
vars |
A character vector containing variable names. If |
Details
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.
Value
Returns a long format data frame with meta information.
Examples
# 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"))
[Package eatGADS version 1.1.0 Index]