subset_nrow {downsize} | R Documentation |
Utility function. Subset an object x
with rows and
return another with min(nrow, nrow(x)) columns.
subset_nrow(x, nrow, random)
x |
object to subset |
nrow |
new number of rows |
random |
logical, whether to take a random subset or just the head. |