subset_single_dim: Internal utility function.

View source: R/subset.R

subset_single_dimR Documentation

Internal utility function.

Description

Utility function. Same as subset_dim, but along the single dimension with index which_dim.

Usage

subset_single_dim(x, which_dim, dim_length, random)

Arguments

x

object to subset

which_dim

index of dimension along which to subset

dim_length

new length/size of the dimension of x with index which_dim

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.