Olv_select_col: Select column from a dataframe

View source: R/Olv_select_col.R

Olv_select_colR Documentation

Select column from a dataframe

Description

Pick a column from a dataframe using an input from the UI. Can be for example from a selectInput().

Usage

Olv_select_col(data, input)

Arguments

data

The dataset used to select the column. Should be a reactive value (e.g. datmap1())

input

the input from the ui (e.g. the input from a selectInput()) in the form of input$....

Examples

## Not run: 

  showcolumn2 = reactive({
  
  Olv_select_col(
  data = datmap1(),       #a dataset made with read_csv() 
  input = input$select3   #the input from a shiny::selectInput()
  )
  
  })


## End(Not run)


ShinyFabio/OliveHealthR documentation built on Oct. 17, 2024, 2:24 a.m.