
Get Number of Samples or Variables of an Experiment
n_samples.Rd
Getting the number of samples or variables of an experiment()
.
Syntax sugar for ncol(exp$expr_mat)
and nrow(exp$expr_mat)
.
Arguments
- exp
An
experiment()
.
Examples
exp <- toy_experiment()
n_samples(exp)
#> [1] 6
n_variables(exp)
#> [1] 4