mean_of_replicates: Calculate mean of replicates over Sample IDs and possibly...

View source: R/mean_of_replicates.R

mean_of_replicatesR Documentation

Calculate mean of replicates over Sample IDs and possibly other grouping columns if they exist

Description

Calculate mean of replicates based on data. Note that the three columns ReplicateID, MP_A and MP_B must be part of data for this function to work properly. The grouping columns may have any name, but it is recommended to stick to standard names such as SampleID or Comparison

Usage

mean_of_replicates(data)

Arguments

data

A data frame or data table with format LFDT where all replicated measurements are enclosed. If Data is on WFDT, you must use mean_of_replicates_2() instead

Details

If the column displaying replicate IDs are named something else than ReplicateID, it will be approximately matched, but there is no guarantee that this will work

Value

A data table with format LFDT where replicated measurements are collapsed to mean of replicated measurements

Examples

mean_of_replicates(data = MS_wise(sampled_eqam_measurements)[Comparison=="MP1 - MP2",])

pernille267/commutability.selectivity documentation built on July 20, 2022, 9:11 a.m.