select: Create a new data frame with only the selected columns

Description Usage Arguments Value

View source: R/utils.R

Description

Shorthand equivalent to subset(df, select=columnNames), however it additionally preserves attributes on the columns

Usage

1
select(df, columnNames)

Arguments

df

the data frame

columnNames

the names of the columns to make up the new data frame

Value

the new data frame


jmvcore documentation built on Feb. 6, 2020, 5:07 p.m.