powered by
Select variables and filter data
get_data(dataset, vars = "", filt = "", rows = NULL, na.rm = TRUE)
Dataset or name of the data.frame
Variables to extract from the data.frame
Filter to apply to the specified dataset
Select rows in the specified dataset
Remove rows with missing values (default is TRUE)
Data.frame with specified columns and rows
Function is used in radiant to select variables and filter data based on user input in string form
# NOT RUN { get_data(mtcars, vars = "cyl:vs", filt = "mpg > 25") get_data(mtcars , vars = c("mpg", "cyl"), rows = 1:10) # }
Run the code above in your browser using DataLab