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