colSelect: Selection on a data.frame to keep or filter out specified...

View source: R/selection-filtering.R

colSelectR Documentation

Selection on a data.frame to keep or filter out specified columns only

Description

Selection on a data.frame to keep or filter out specified columns only

Usage

colSelect(DF, IN, OUT, ..., type = "DF")

Arguments

DF

data.frame to be filtered

IN

column names to keep

OUT

column names to filter out

...

other paramaters (for base::grep)

type

pick the object to return; 'DF' sends back the filtered dataframe 'names' sends back the names (with the correct order) of the columns that are kept

Value

a dataframe or an ordered vector of the kept column names


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.