data_dict_md {explore}R Documentation

Create a data dictionary Markdown file

Description

Create a data dictionary Markdown file

Usage

data_dict_md(
  data,
  title = "",
  description = NA,
  output_file = "data_dict.md",
  output_dir
)

Arguments

data

A dataframe (data dictionary for all variables)

title

Title of the data dictionary

description

Detailed description of variables in data (dataframe with columns 'variable' and 'description')

output_file

Output filename for Markdown file

output_dir

Directory where the Markdown file is saved

Value

Create Markdown file

Examples

# Data dictionary of a dataframe
data_dict_md(iris,
             title = "iris flower data set",
             output_dir = tempdir())

# Data dictionary of a dataframe with additional description of variables
description <- data.frame(
                 variable = c("Species"),
                 description = c("Species of Iris flower"))
data_dict_md(iris,
             title = "iris flower data set",
             description = description,
             output_dir = tempdir())

[Package explore version 1.3.1 Index]