names.growthmodel {growthrates} | R Documentation |
Get Names Attributes of Growth Models
Description
Methods to get the parameter names of a growth model or to get or set
identifiers of multiple_fits
objects.
Usage
## S3 method for class 'growthmodel'
names(x)
## S4 method for signature 'multiple_fits'
names(x)
## S4 replacement method for signature 'multiple_fits'
names(x) <- value
Arguments
x |
either a function being a parametric growth model of package growthmodels or an object with multiple fits. |
value |
a character vector of up to the same length as x, or NULL |
Value
character vector of the parameter names
Methods
- Method for class
growthmodel
: returns information about valid parameter names if a
pnames
attribute exists, elseNULL
.NULL
.- Method for class
multiple_fits
: can be applied to objects returned by
all_growthmodels
,all_splines
orall_easylinear
respectively. This can be useful for selecting subsets, e.g. for plotting, see example below.
See Also
multiple_fits
, all_growthmodels
,
all_splines
, all_easylinear
Examples
## growthmodel-method
names(grow_baranyi)
## multiple_fits-method
L <- all_splines(value ~ time | strain + conc + replicate,
data = bactgrowth)
names(L)
## plot only the 'R' strain
par(mfrow=c(4, 6))
plot(L[grep("R:", names(L))])
[Package growthrates version 0.8.4 Index]