Description Usage Arguments Details Value Note Author(s) Examples
A table, that is, a 2-dimensional array, with the responses of an
experiment is transformed for into a matrix, a data.frame,
with rows for the individual measurements and columns the variables
and factors of the assay - for pla.fit and pla.plots.
1 2 3 4 5 6 |
table |
A table in an object of class array.
This is here usually in this tool the result of
|
dr |
The dilution ratio of the geometric dilution serie with equally spaced dilutions (constant ratio between any adjacent dilutions) on the logarithmic scale. See also data2assayFrame. |
Z |
The 'concentration', by default computed as
log((1/dr)^{(max(Dilution) - Dilution)}),
where |
byOrder |
If |
echoData |
If |
... |
For additional arguments. |
This function is used on table of data read by readAssayTable.
The table of responses is transformed into a data.frame
with the relevant columns Response, Dilution,
Sample, and Replicate.
The rows of the input table are replicates,
and the columns of the input table are the
cross classification samples and dilutions.
A data.frame with rows of individual observations and columns of treatments, dilution step numbers, replicate numbers (blocks), response-values, etc.
If, e.g., "1. form" of table layout is used for the input file, see readAssayTable:
Dilution steps (and concentrations) are determined by the order
of the columns in table, not the column-names of the table (by
default) - for tables read with the single repetition over several lines.
Thus the value of the dose in the label of the columns of the table
is ignored - if not the argument byOrder is set to
FALSE.
Sample names (and "doses") are extracted from the
second item of dimnames of the table.
If this second component of the dimnames of the table
does not contain text strings with the character ":", then the
sample name is the first character of each name.
If the names contains the character ":", the sample name
is the first item, when splitting according to ":".
If byOrder is set to TRUE (default) then Dilution
step is the index of the column of the dilutionstep among the columns
for the sample in the table.
If byOrder is set to FALSE then "dose" is the
last item (when splitting according to ":") of each name of
the header dimnames of the table.
- Similar, if the doses and/or samples are given in rows.
The first meet sample in the sample column is the
reference (by default) in pla.fit and pla.plots.
Jens Henrik Badsberg
1 2 3 4 5 6 | data(HepatitisB); Data <- HepatitisB
Data <- readAssayTable(paste(system.file(package = "pla"),
"vignettes/PhEur/data/HepatitisB.txt",
sep = "/"), fun = log)
Frame <- assayTable2frame(as.array(Data))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.