get_data: Select variables and filter data

Description Usage Arguments Details Value Examples

View source: R/radiant.R

Description

Select variables and filter data

Usage

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

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)

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

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

radiant-rstats/radiant.data documentation built on Nov. 13, 2018, 6:57 a.m.