Skip to contents

Show the contents of a data frame

Usage

contents(.data)

Arguments

.data

A data frame or data table

Value

A data.table with one row per column in .data and columns "column": The name of the column in .data, "class": the names of classes the column inherits from (as returned by class()), collapsed into a single string.

Examples

contents(ToothGrowth)
#>    column   class
#> 1:   supp  factor
#> 2:   dose numeric
#> 3:    len numeric