sel_cols: Function to subset data.table by selecting columns/variables

View source: R/sel_cols.R

sel_colsR Documentation

Function to subset data.table by selecting columns/variables

Description

This is a wrapper function to select columns in a data.table

Usage

sel_cols(dt, ...)

Arguments

dt

input data.table

...

vector of characters of column names, column names separated by commas or range given with ":" notation

Details

The function creates a copy as data.table would by default. Columns will appear in the output data.table in the order that they are given in "...". Repeat column names are removed.


kleu046/wr.data.table documentation built on April 25, 2022, 1:41 p.m.