subDataFrame: Select a continuous subframe of a data frame

Description Usage Arguments Value

View source: R/data_utils.r

Description

Return a continuous subframe of the data frame x containing size * nrow(x) rows from the start, center, or end.

Usage

1
subDataFrame(x, size = 1, pos = "START")

Arguments

x

The data frame to get a subframe from.

size

The size ratio of the subframe. Must be between 0 and 1.

pos

The position to take the subframe from. Must be "START", "CENTER", or "END".

Value

A subframe of x.


rgp documentation built on May 30, 2017, 12:45 a.m.