Calculating characteristics such as median, mean,… of a subset of data is quite straightforward in R:
For a data set containing results from several “models”, a subset for the model “base” is created by
1 | base_only <- subset (all, all$model == "base" ) |
Then, the median of the variable “data” can be computed via
1 | median (base_only$data) |