sc_select: Select scorecard data variables.

View source: R/select.R

sc_selectR Documentation

Select scorecard data variables.

Description

This function is used to select the variables returned in the final dataset.

Usage

sc_select(sccall, ...)

sc_select_(sccall, vars)

Arguments

sccall

Current list of parameters carried forward from prior functions in the chain (ignore)

...

Desired variable names separated by commas (not case sensitive)

vars

Character string of variable name or vector of character string variable names

Functions

  • sc_select_(): Standard evaluation version of sc_select (vars must be string or vector of strings when using this version)

Examples

## Not run: 
sc_select(UNITID)
sc_select(UNITID, INSTNM)
sc_select(unitid, instnm)

## End(Not run)
## Not run: 
sc_select_('UNITID')
sc_select_(c('UNITID', 'INSTNM'))
sc_select_(c('unitid', 'instnm'))

## stored in object
vars_to_pull <- c('unitid','instnm')
sc_select(vars_to_pull)

## End(Not run)


rscorecard documentation built on April 29, 2023, 1:13 a.m.