select_options: Create a character vector of column values

Description Usage Arguments Details Value

View source: R/select_options.R

Description

select_options() takes a column of a dataframe and creates a character vector of all unique values within that column.

Usage

1

Arguments

df

A dataframe

col

The name of a column from the dataframe

all

Default is FALSE, when TRUE will add "All" to the vector

none

Default is FALSE, when TRUE will add "None" to the vector

Details

Used to create a list of options from the unique values within a column.

Value

A character vector


ahvickers/accidenttracker documentation built on Dec. 18, 2021, 11:26 p.m.