Learn R Programming

NormqPCR (version 1.18.0)

replaceNAs: Replace NAs with a given value

Description

Replace NAs with a given value

Usage

replaceNAs(qPCRBatch, ...)
"replaceNAs"(qPCRBatch, newNA)

Arguments

qPCRBatch
Expression set containing qPCR data.
...
Extra arguments, detailed below
newNA
The new value to replace the NAs with

Value

qPCRBatch object with a new exprs slot

Details

Replaces NA values in the exprs slot of the qPCRBatch object with a given number

References

Perkins, JR, Dawes, JM, McMahon, SB, Bennett, DL, Orengo, C, Kohl, M (2012). ReadqPCR and NormqPCR: R packages for the reading, quality checking and normalisation of RT-qPCR quantification cycle (Cq) data. BMC Genomics, 13, 1:296.

Examples

Run this code
  path <- system.file("exData", package = "NormqPCR")
  taqman.example <- file.path(path, "example.txt")
  qPCRBatch.taqman <- read.taqman(taqman.example)
  qPCRBatch.taqman.replaced <- replaceNAs(qPCRBatch.taqman, newNA = 40)
  exprs(qPCRBatch.taqman.replaced)["Ccl20.Rn00570287_m1",]

Run the code above in your browser using DataLab