Skip to contents

Column names as symbols

Usage

col_syms(df)

Arguments

df

a dataframe

Value

a list of symbols

Examples

intersect(col_syms(iris), ensyms2(tidyselect::starts_with("S"), .tidy=iris))
#> [[1]]
#> Sepal.Length
#> 
#> [[2]]
#> Sepal.Width
#> 
#> [[3]]
#> Species
#>