Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_data

Select variables and filter data


Description

Select variables and filter data

Usage

get_data(dataset, vars = "", filt = "", rows = NULL, na.rm = TRUE, envir = c())

Arguments

dataset

Dataset or name of the data.frame

vars

Variables to extract from the data.frame

filt

Filter to apply to the specified dataset

rows

Select rows in the specified dataset

na.rm

Remove rows with missing values (default is TRUE)

envir

Environment to extract data from

Details

Function is used in radiant to select variables and filter data based on user input in string form

Value

Data.frame with specified columns and rows

Examples

get_data(mtcars, vars = "cyl:vs", filt = "mpg > 25")
get_data(mtcars, vars = c("mpg", "cyl"), rows = 1:10)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.