cv_by_sample_estimation: cv by sample

View source: R/cv_by_sample_estimation.R

cv_by_sample_estimationR Documentation

cv by sample

Description

A function to give the summary of the CV's by the sampleID

Usage

cv_by_sample_estimation(
  dataCV,
  cv_variable,
  lab_replicates,
  sampleID_var = "sampleID"
)

Arguments

dataCV

A dataframe

cv_variable

A character string containing the identifier of the variable with CV values.

lab_replicates

A numeric value indicating the number of lab replicates.

sampleID_var

A character string containing the name of the sample identifier variable. Default set to 'sampleID'

Details

Summarise CV by samples

Value

A data frame of CV calculated by sample

Examples

dataC <- readr::read_csv(system.file("extdata", 
"dataC.csv", package="protGear"))
## this file has 3 lab replicates and the default names
dataCV <- cv_estimation(dataC  ,lab_replicates=3)
cv_by_sample_estimation(dataCV, cv_variable = "cvCat_all",
 lab_replicates = 3)

Keniajin/protGear documentation built on Feb. 6, 2023, 6:28 p.m.