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

select {jmvcore} | R 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

### 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

[Package jmvcore version 0.8.5 Index]