Select Columns and Rows

DESCRIPTION:

Returns a subset of the input data with a selected set of columns, and a range of rows.

This function requires the bigdata library section to be loaded.

USAGE:

bd.select.rows(data, from.row=1, to.row=NULL, columns=NULL)

REQUIRED ARGUMENTS:

data
input data set, a bdFrame or data.frame.

OPTIONAL ARGUMENTS:

from.row
the first row number to select. Defaults to the first row in the dataset.
to.row
the first row number to select. Defaults to NULL, which specifies the last row in the dataset.
columns
names or numbers of the data set columns to be processed. If NULL, this specifies all of the data set columns.

VALUE:

A bdFrame or data.frame, of the same type as x. This contains the specified subset of the columns and rows of the input dataset.

EXAMPLES:

## select the first five rows, and four columns
bd.select.rows(fuel.frame, 1, 5, 1:4)