Calculate relative standard deviation (RSD) percentage values for each feature per class for a given sample information column.
Arguments
- x
S4 object of class
AnalysisData
- cls
sample information column to use for class structure
Examples
library(metaboData)
d <- analysisData(abr1$neg[,200:300],abr1$fact)
rsd(d,cls = 'day')
#> # A tibble: 606 × 5
#> day Feature Mean SD RSD
#> <fct> <chr> <dbl> <dbl> <dbl>
#> 1 1 N200 0.224 1.00 447.
#> 2 1 N201 0.228 0.946 415.
#> 3 1 N202 0.0538 0.151 280.
#> 4 1 N203 1.34 1.03 76.5
#> 5 1 N204 0.0833 0.202 242.
#> 6 1 N205 1.55 2.29 148.
#> 7 1 N206 0.112 0.360 320.
#> 8 1 N207 0.220 0.396 180.
#> 9 1 N208 0.124 0.225 182.
#> 10 1 N209 1.37 2.03 148.
#> # ℹ 596 more rows