Description Usage Arguments Details Value Examples
select_metadata allows users to retrieve the value of a specific field or fields of a given variable, or the entire variable metadata if no field is specified
1 2 | select_metadata(variable_name = NULL, fields = NULL,
returnDataFrame = TRUE)
|
variable_name |
name of variable |
fields |
specific field or list of fields of variable to be accessed. See details for valid field names |
returnDataFrame |
optional parameter set to TRUE by default, output is named list if set to FALSE |
List of valid field names:
data_source
data_type
fp_PCG
fp_father
fp_fchild
fp_mother
fp_other
fp_partner
group_id
group_subid
id
label
leaf
measures
name
old_name
probe
qText
respondent
scope
section
warning
wave
returns string with value of a given field if field is specified, returns all metadata for variable as data frame if field is unspecified
1 2 3 4 5 | select1 <- select_metadata(variable_name = "ce3agefc")
select2 <- select_metadata(variable_name = "ce3agefc", fields = "data_type")
select3 <- select_metadata(variable_name = "ce3agefc", fields = c("data_type", "data_source"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.