Skip to contents

Numeric app inputs

Usage

pull_numeric_cols(df)

Arguments

df

a data.frame or tibble

Value

a named character vector of integer and double column names

Examples

require(palmerpenguins)
#> Loading required package: palmerpenguins
#> Warning: there is no package called ‘palmerpenguins’
require(dplyr)
pull_numeric_cols(palmerpenguins::penguins)
#> Error in purrr::map(.x = class, .f = col_class, df = df):  In index: 1.
#> Caused by error in `loadNamespace()`:
#> ! there is no package called ‘palmerpenguins’
pull_numeric_cols(dplyr::starwars)
#>         mass   birth_year       height 
#>       "mass" "birth_year"     "height"