SelectRows: Select rows from a table

View source: R/tidytools.R

SelectRowsR Documentation

Select rows from a table

Description

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

Usage

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

Arguments

x

Matrix or dataframe from which rows will be extracted

select

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

first.k

If a number greater than zero is supplied, The first (or up to) first.k rows from x[select,] is returned.

last.k

If a number greater than zero is supplied, The last (or up to) last.k rows from x[select,] is returned.


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