Learn R Programming

useful (version 1.2.6)

classdf: classdf

Description

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

Usage

classdf(data, cols)

Value

A vector detailing the class of each column.

Arguments

data

link{data.frame} that is to be inspected.

cols

The columns (named or numeric) to be included in the check.

Author

Jared P. Lander

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