subset_dim: Internal utility function.

View source: R/subset.R

subset_dimR Documentation

Internal utility function.

Description

Utility function. Subset an object x with a dim attribute (matrix/array/data.frame/etc.) and return another with dimensions pmin(dim, dim(x))

Usage

subset_dim(x, dim, random)

Arguments

x

object to subset

dim

new dimensions

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.