Learn R Programming

rtemis (version 1.4.3)

getnamesandtypes: Get data.frame names and types

Description

Get data.frame names and types

Usage

getnamesandtypes(x)

Value

character vector of column names with attribute "type" holding the class of each column

Arguments

x

data.frame / data.table or similar

Author

EDG

Examples

Run this code
getnamesandtypes(iris)

Run the code above in your browser using DataLab