SelectColumns: Select columns from a table

View source: R/tidytools.R

SelectColumnsR Documentation

Select columns from a table

Description

Function to select column from a table, either by colnames or as range from the top or bottom.

Usage

SelectColumns(x, select = NULL, first.k = NA, last.k = NA)

Arguments

x

Matrix or dataframe from which columns will be extracted

select

A string containing a comma seperated list of the names or indices of the columns to be selected. If an empty list is supplied, then the whole of x will be selected.

first.k

If a number greater than zero is supplied, The first (or up to) first.k columns of x[,select] will be returned.

last.k

If a number greater than zero is supplied, The last (or up to) last.k columns of x[,select] will be returned.


Displayr/flipTables documentation built on Feb. 26, 2024, 12:45 a.m.