colnames_type: colnames_type

Description Usage Arguments Details Value Examples

View source: R/colnames_type.R

Description

Given a dataframe and a character-vector of types, return the column names of that type

Usage

1

Arguments

df

dataframe

type

character, vector of types of columns to return

Details

Following dplyr::type_sum, the most-common types are:

lgl

logical

int

integer

dbl

double (numeric)

chr

character

fctr

factor

date

date

time

time, such as POSIXct

Value

character, vector column names corresponding to type

Examples

1
colnames_type(xform_sample, c("int", "dbl"))

ijlyttle/xformplus documentation built on May 18, 2019, 3:42 a.m.