Learn R Programming

growthrates (version 0.8.4)

names.growthmodel: 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 growthmodel
names(x)

# S4 method for multiple_fits names(x)

# S4 method for multiple_fits names(x) <- value

Value

character vector of the parameter names

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

Methods

Method for class growthmodel:

returns information about valid parameter names if a pnames attribute exists, else NULL. NULL.

Method for class multiple_fits:

can be applied to objects returned by all_growthmodels, all_splines or all_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

Run this code

## 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))])


Run the code above in your browser using DataLab