subset_ncol: Internal utility function.

View source: R/subset.R

subset_ncolR Documentation

Internal utility function.

Description

Utility function. Subset an object x with columns and return another with min(ncol, ncol(x)) columns.

Usage

subset_ncol(x, ncol, random)

Arguments

x

object to subset

ncol

new number of columns

random

logical, whether to take a random subset or just the head.

See Also

help_downsize


downsize documentation built on March 31, 2023, 10:41 p.m.