Learn R Programming

easyr (version 0.5-11)

getinfo: 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"
)

Value

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

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)

Examples

Run this code
getinfo(iris,'Sepal.Width')
getinfo(iris,'Species')

Run the code above in your browser using DataLab