document_df: Prints framework for documenting a data frame

Description Usage Arguments Value Examples

View source: R/document_df.R

Description

Prints the standard fframework for documenting a data frame in an R package.

Usage

1
document_df(df, num_spaces = 4)

Arguments

df

data frame object; can be a data.frame, data.table, or tibble

num_spaces

number of a spaces per tab; default is 4

Value

nothing

Examples

1
2
3
4
set.seed(0)
dat <- data.frame(x = c(LETTERS[1:5]),
                  y = c(sample(1:100, 5)))
document_df(dat)

jhrcook/jhcutils documentation built on Sept. 2, 2020, 7:16 a.m.