This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(shiny) | |
| #' Safe subset | |
| #' | |
| #' @param df Dataframe | |
| #' @param column One name of column to subset within | |
| #' @param subset Vector of entries in column to subset to | |
| #' | |
| #' If column not in df, returns back the df | |
| safeSubset <- function(df, column, subset){ |