getinfo: Get Info

View source: R/getinfo.R

getinfoR Documentation

Get Info

Description

Get information about a Column in a Data Frame or Data Table. Use getdatadict to explore all columns in a dataset instead. Author: Scott Sobel. Tech Review: Bryce Chamberlain.

Usage

getinfo(
  df,
  colname,
  topn = 5,
  botn = 5,
  graph = TRUE,
  ordered = TRUE,
  display = TRUE,
  cutoff = 20,
  main = NULL,
  cex = 0.9,
  xcex = 0.9,
  bins = 50,
  col = "light blue"
)

Arguments

df

Data Frame or Data Table.

colname

(Character) Name of the column to get information about.

topn

(Optional) Number of top values to print.

botn

(Optional) Number of bottom values to print.

graph

(Boolean Optional) Output a chart of the column.

ordered

(Optional)

display

(Optional)

cutoff

(Optional)

main

(Optional)

cex

(Optional)

xcex

(Optional)

bins

(Optional)

col

(Optional)

Value

Only if display = FALSE, returns information about the column. Otherwise information comes through the graphing pane and the console (via cat/print).

Examples

getinfo(iris,'Sepal.Width')
getinfo(iris,'Species')

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