Learn R Programming

grandR (version 0.2.6)

structure2vector: Convert a structure into a vector

Description

The structure is supposed to be a list. Flattening is done by extracting the given fields (return.fields) and applying the additional function (return.extra). This is mainly to be used within sapply and similar.

Usage

structure2vector(d, return.fields = NULL, return.extra = NULL)

kinetics2vector( d, condition = NULL, return.fields = c("Synthesis", "Half-life"), return.extra = NULL )

Value

the data flattened into a vector

Arguments

d

the data structure

return.fields

which fields should be extracted directly (may be NULL)

return.extra

apply a function returning a flat list or vector (may be NULL)

condition

if the original grandR object had Condition set, which condition to extract (NULL otherwise)

Functions

  • kinetics2vector(): Convert the output of the FitKinetics methods into a vector

Examples

Run this code
sars <- ReadGRAND(system.file("extdata", "sars.tsv.gz", package = "grandR"),
                  design=c("Condition",Design$dur.4sU,Design$Replicate))
sars <- Normalize(sars)
fit <- FitKineticsGeneLeastSquares(sars,"SRSF6")$Mock
print(fit)
kinetics2vector(fit)

Run the code above in your browser using DataLab