
Get Samples or Variables of an Experiment
samples.Rd
Getting the names of samples or variables of an experiment()
.
Syntax sugar for colnames(exp$expr_mat)
and rownames(exp$expr_mat)
.
Arguments
- exp
An
experiment()
.
Examples
exp <- toy_experiment()
samples(exp)
#> [1] "S1" "S2" "S3" "S4" "S5" "S6"
variables(exp)
#> [1] "V1" "V2" "V3" "V4"