pcrimport2: Simple qPCR data import function (i.e. from text files or...

Description Usage Arguments Details Value Note Author(s) Examples

Description

Simple wrapper function to easily import qPCR data from the clipboard (default) or tab-delimited text files. In contrast to pcrimport, this function has no enhanced formatting features, but is quick and easy to use on data that has been pre-formatted, i.e. as in dataset reps ('Cycles' in the first column, all remaining columns with sensible names.

Usage

1
2
pcrimport2(file = "clipboard", sep = "\t", header = TRUE, quote = "",
          dec = ".", colClasses = "numeric", ...)

Arguments

file

the name of the file which the data are to be read from (full path).

sep

the field separator character.

header

a logical value indicating whether the file contains the names of the variables as its first line.

quote

the set of quoting characters.

dec

the character used in the file to denote decimal points.

colClasses

character. A vector of classes to be assumed for the columns.

...

further arguments to be passed on to read.table.

Details

For a more detailed description of the arguments see read.table.

Value

A data frame containing a representation of the data in the file.

Note

This function is the former pcrimport from packages 1.3-3 downward. See pcrimport for an enhanced version offering formatting in the presence of reference dyes, columns/rows deletion, transforming from wide to long format, and automatic batch analysis.

Author(s)

Andrej-Nikolai Spiess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Paste some Excel data into the clipboard.
## Not run: 
temp <- pcrimport2()

## End(Not run)
## From a tab-delimited text file.
## Not run: 
temp <- pcrimport2("c:\temp\foo.txt")

## End(Not run)

qpcR documentation built on May 2, 2019, 5:17 a.m.

Related to pcrimport2 in qpcR...