reduceReplicates | R Documentation |
Obtain the mean and standard deviation from replicates per condition.
reduceReplicates(data, select = "condition", datatrans = NULL)
data |
A data frame containing the measurements. See Format for details. |
select |
Names of the columns in the data frame used to define conditions, see Details. |
datatrans |
Character vector describing a function to transform data. Use x to refer to data. |
The following columns are mandatory for the data frame:
Name of the observed species.
Measurement time point.
Measurement value.
The condition under which the observation was made.
In addition to these columns, any number of columns can follow to allow a
fine-grained definition of conditions. The values of all columns named in
select
are then merged to get the set of conditions.
Experiments are usually repeated multiple times possibly under different
conditions leading to replicated measurements. The column "condition" in the
data allows grouping the data by their condition. However, sometimes, a more
fine-grained grouping is desirable. In this case, any number of additional
columns can be appended to the data. These columns are referred to as
"condition identifiers". Which of the condition identifiers are used for
grouping is user-defined by specifying their names in select
. The mandatory
column "condition" is always used. The total set of different conditions is
thus defined by all combinations of values occurring in the selected condition
identifiers. The replicates of each condition are then reduced to mean and
standard deviation. New condition names are derived by merging all conditions
which were used in mean and standard deviation. Columns that are not listed in
select
but have different values within grouped data are dropped. Columns
that remain stable across all replicates are retained and horizontally attached
to the resulting data frame.
A data frame of the following variables:
Measurement time point.
Name of the observed species.
Mean of replicates.
Standard error of the mean, NA for single measurements.
The number of replicates reduced.
The condition for which the value and sigma were calculated. If more than one column was used to define the condition, this variable holds the effective condition which is the combination of all applied single conditions.
Columns that were stable across replicates are retained and horizontally attached to the resulting data frame.
Wolfgang Mader, Wolfgang.Mader@fdm.uni-freiburg.de
Simon Beyer, simon.beyer@fdm.uni-freiburg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.