dict: Get Data Dictionary

View source: R/dict.R

dictR Documentation

Get Data Dictionary

Description

Get information about a Data Frame or Data Table. Use getinfo to explore a single column instead. If you like, use ecopy function or agument to copy to the clipboard so that it can be pasted into Excel. Otherwise it returns a data frame. Author: Scott Sobel. Tech Review & Modifications: Bryce Chamberlain.

Usage

dict(
  x,
  topn = 5,
  botn = 5,
  na.strings = easyr::nastrings,
  do.atype = TRUE,
  ecopy = FALSE
)

Arguments

x

Data Frame or Data Table.

topn

Number of top values to print.

botn

Number of bottom values to print.

na.strings

Strings to consider NA.

do.atype

Auto-determine variable types. If your data already has types set, skip this to speed up the code.

ecopy

Use ecopy function or agument to copy to the clipboard so that it can be pasted into Excel.

Examples

dict(iris)

oliver-wyman-actuarial/easyR documentation built on Jan. 27, 2024, 4:35 a.m.