Learn R Programming

SciencesPo (version 1.02.12)

info: Get Information on Data Objects

Description

Get Information on Data Objects

Usage

info(data, show, ignore)

Arguments

data
the data frame to be detailed.
show
the selection of columns from data, if not all.
ignore
columns from data to prevent of showing.

encoding

UTF-8

Examples

Run this code
data(titanic)
## Wildcard for variables
info(titanic, "C*") # Show all variables starting with 'C'
## Subset of variables
info(titanic, show = CLASS:SEX) # Same results
info(titanic, show = 1:3)
## Exclusion using wildcard.
info(titanic, ignore = "C*")

Run the code above in your browser using DataLab