Description Usage Arguments Details Value Examples
View source: R/colnames_type.R
Given a dataframe and a character-vector of types, return the column names of that type
1 | colnames_type(df, type = "")
|
df |
dataframe |
type |
character, vector of types of columns to return |
Following dplyr::type_sum
, the most-common types are:
logical
integer
double (numeric)
character
factor
date
time, such as POSIXct
character, vector column names corresponding to type
1 | colnames_type(xform_sample, c("int", "dbl"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.