Learn R Programming

useful (version 1.2.0)

classdf: classdf

Description

Get class information for each column in a data.frame.

Usage

classdf(data, cols)

Arguments

data
link{data.frame} that is to be inspected.
cols
The columns (named or numeric) to be included in the check.

Value

  • A vector detailing the class of each column.

Details

Get class information for each column in a data.frame.

Examples

Run this code
classdf(CO2)
classdf(iris)
classdf(mtcars)

Run the code above in your browser using DataLab