mt_create_meta_shell: Create metadata shell

Description Usage Arguments Value Examples

Description

Create metadata table shell of variable attributes from a dataset. The function attempts to guess values where possible. The rest require completing manually

Usage

1
mt_create_meta_shell(df, factor_cols = NULL, sep = ";")

Arguments

df

a dataframe of data for which metadata attribute table is to be created

factor_cols

character string or vector of names of columns containing factors Code and level information is extracted auromatically from factor columns.

sep

separator used to separate codes and definitions for each level in the metadata table

Value

a dataframe consiting of one row per column of the input df. Columns represent minimum metadata requirements.

Examples

1
2
3
4
5
## Not run: 
library(gapminder)
create_meta_shell(gapminder)

## End(Not run)

annakrystalli/metadatar documentation built on May 14, 2019, 6:09 a.m.