get_table_metadata {danstat}R Documentation

Title

Description

Title

Usage

get_table_metadata(table_id, variables_only = FALSE, language = c("en", "da"))

Arguments

table_id

Table identifier, e.g. "folk1a"

variables_only

If TRUE returns only information about the variables in the table

language

Language for the return object. Default = "en"

Value

A list with information about the table, like documentation url, variable description, etc. If variables_only = TRUE, returns a data frame with variable information.

Examples

# Get table metadata for a given table
table_meta <- get_table_metadata(table_id = "folk1c") # a list

# Get only information about the variables in the table
table_meta_vars <- get_table_metadata(table_id = "folk1c", variables_only = TRUE) # a data frame

[Package danstat version 0.1.0 Index]