update.bsm: Update and Re-fit a brokenstick model

Description Usage Arguments Examples

Description

Update and Re-fit a brokenstick model

Usage

1
2
## S3 method for class 'bsm'
update(object, npts, allow.dup = FALSE, ...)

Arguments

object

Object of class inheriting from "bsm".

npts

The number of points for the brokenstick model to fit. See optBrokenstick for a version of brokenstick which figures out this number of points automatically.

allow.dup

Should the duplicated points be added anyway.

...

Further arguments to be passed to bsmfit such as eco.mem.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj = exses)[[1]]
bsm <- brokenstick(dv) 
length(bsm$pts.x)

length(update(bsm, 5)$pts.x)
length(update(bsm, 7)$pts.x)

## Not run: 
# low resolution
lr_bsm <- eco.mem(bsm)
length(update(lr_bsm, 5)$pts.x)
length(update(lr_bsm, 7)$pts.x)

## End(Not run)

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.