qpcr_avg_techrep: Average technical replicates

Description Usage Arguments Value Examples

View source: R/qpcr_avg_techrep.R

Description

This function calculates the average of every technical replicate. mean function argument na.rm is set to TRUE by default.

Usage

1
qpcr_avg_techrep(.data, cq, ...)

Arguments

.data

A data frame or tibble.

cq

Unquoted expression. The name of the column containing the Cq values.

...

Tidy-select. One or more unquoted expressions separated by commas. All the names of columns that denote your experimental variables (and biological replicates). The average will be taken for every unique combination of values in the supplied columns. Be sure to exclude the columns containing the Cq values or technical replicates.

Value

Returns the same type as the input (e.g. a data frame or tibble). All columns supplied in ... will be returned. Creates a new column for the averaged Cq values with the name "cq".

Examples

1
2
3
avg_data <- qpcr_avg_techrep(ex_clean,
                             cq = cq_values,
                             treatment, primer_pair, bio_rep)

JorikBot/tidyqpcr documentation built on Jan. 28, 2021, 11:44 a.m.