subset_length: Internal utility function.

View source: R/subset.R

subset_lengthR Documentation

Internal utility function.

Description

Utility function. Subset a vector/list/etc. x and return another with length min(length, length(x))

Usage

subset_length(x, length, random)

Arguments

x

object to subset

length

new length

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.