as.bsm: General S3 utils for bsm objects

Description Usage Arguments Details References Examples

Description

General S3 utils for bsm objects

Usage

1
2
3
as.bsm(pts.x, pts.y = NULL, ...)

is.bsm(x)

Arguments

pts.x

x coordinates of breakpoints. If pts.x is a list then it is interpreted as being a "bsm" object and is returned as is with updated class. Eventually x can be a table formated in the SMRU format (see details section).

pts.y

y coordinates of breakpoints

...

other BSM slots such as "data", "fitted" or "residuals". See details of slots in brokenstick.

x

an object to test.

Details

SMRU format refers to a table with 80 columns extracted from Access database on the SMRU Instrumenation website. See the link in references for the description of the object ("dive" table, page 4).

References

http://www.smru.st-andrews.ac.uk/protected/specs/DatabaseFieldDescriptions.pdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj = exses)[[1]]
bsm <- brokenstick(dv) 

as.bsm(bsm$pts.x, bsm$pts.y)
as.bsm(bsm$pts.x, bsm$pts.y, residuals = "dummy")
as.bsm(bsm)
## Not run: 
is.bsm(bsm)

## End(Not run)

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