R/subset.R
subset_length.Rd
Utility function. Subset a vector/list/etc. x and return another with length min(length, length(x))
x
subset_length(x, length, random)
object to subset
new length
logical, whether to take a random subset or just the head.
help_downsize