coltypes: Returns the column types for a data.table

Description Usage Arguments Value Examples

View source: R/hello.R

Description

Returns the column types for a data.table

Usage

1

Arguments

data

- a data.table

Value

column types data.table with columns: variable - name of the variable type - type of the variable is_factor - TRUE/FALSE if the variable column is a factor

Examples

1
2
    coltypes(data.table(iris))
    coltypes(data.table(iris))[type=="double"]

AlbertoEAF/data.Rh documentation built on Feb. 8, 2021, 5:50 p.m.