Skip to contents

Getting the number of samples or variables of an experiment(). Syntax sugar for ncol(exp$expr_mat) and nrow(exp$expr_mat).

Usage

n_samples(exp)

n_variables(exp)

Arguments

exp

An experiment().

Value

An integer with the number of samples or variables.

Examples

exp <- toy_experiment()
n_samples(exp)
#> [1] 6
n_variables(exp)
#> [1] 4