subset_nrow: Internal utility function.

View source: R/subset.R

subset_nrowR Documentation

Internal utility function.

Description

Utility function. Subset an object x with rows and return another with min(nrow, nrow(x)) columns.

Usage

subset_nrow(x, nrow, random)

Arguments

x

object to subset

nrow

new number of rows

random

logical, whether to take a random subset or just the head.

See Also

help_downsize


wlandau/downsize documentation built on March 19, 2023, 4:05 a.m.