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)
require(dplyr)
pull_numeric_cols(palmerpenguins::penguins)
#>      bill_length_mm       bill_depth_mm   flipper_length_mm         body_mass_g 
#>    "bill_length_mm"     "bill_depth_mm" "flipper_length_mm"       "body_mass_g" 
#>                year 
#>              "year" 
pull_numeric_cols(dplyr::starwars)
#>         mass   birth_year       height 
#>       "mass" "birth_year"     "height"