ypr_update: Update a YPR Object Currently just works with scalar...

View source: R/update.R

ypr_updateR Documentation

Update a YPR Object Currently just works with scalar parameters for populations and ecotypes.

Description

Update a YPR Object Currently just works with scalar parameters for populations and ecotypes.

Usage

ypr_update(x, ...)

## S3 method for class 'ypr_population'
ypr_update(x, ...)

## S3 method for class 'ypr_populations'
ypr_update(x, ...)

## S3 method for class 'ypr_ecotypes'
ypr_update(x, ...)

Arguments

x

A population, populations or ecotypes object to update.

...

One or more parameter values from ypr_population().

Methods (by class)

  • ypr_update(ypr_population): Update Population Parameters

  • ypr_update(ypr_populations): Update Populations Parameters

  • ypr_update(ypr_ecotypes): Update Populations Parameters

Examples

ypr_update(ypr_population(), Rk = 2.5)
ypr_update(ypr_populations(Rk = c(2.5, 4)), Rk = 2.5)
ypr_update(ypr_ecotypes(Linf = c(2.5, 4)), k = 1.5)

ypr documentation built on Aug. 30, 2022, 1:11 a.m.