d: Describe a data frame

Description Usage Arguments Value Examples

View source: R/d.R

Description

'd' describes a data frame, just like the 'd' command in Stata.

Usage

1
d(df, compact = TRUE)

Arguments

df

'df' should be a data frame. 'd' works best with labelled data frames (from the 'haven' package).

compact

'compact' should be logical.

Value

'd(df)' returns a data frame that contains metadata records for the dataset.

Examples

1
2
nlsw88 = haven::read_dta("http://www.stata-press.com/data/r13/nlsw88.dta")
d(nlsw88)

jjchern/meda documentation built on May 19, 2019, 11:38 a.m.