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

View source: R/utils.R

selectR Documentation

Create a new data frame with only the selected columns

Description

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

Usage

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 Sept. 12, 2024, 7:32 a.m.

Related to select in jmvcore...