sample_frac_matrix.Rd
dplyr like sample_frac for a matrix
sample_frac_matrix(mat, frac, replace = FALSE, weight = NULL)
mat | A matrix |
---|---|
frac | fraction of rows to sample |
replace | See arguments for 'base::sample' |
weight | See arguments for 'base::sample' |
A matrix
#> [1] 100 10