Rdocumentation
powered by
Learn R Programming
rgp (version 0.4-1)
subDataFrame: Select a continuous subframe of a data frame
Description
Return a continuous subframe of the data frame
x
containing
size
*
nrow(x)
rows from the start, center, or end.
Usage
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
.