Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

join

join an mpm-estimated behavioural index to ssm-predicted locations


Description

join() joins ssm-predicted locations and mpm-estimated behavioural index into a single tibble. If the ssm-predicted tibble is a projected sf object then the output of join will also be an sf object (default). This can be avoided by using as_sf = FALSE.

Usage

join(ssm, mpm, what.ssm = "predicted", as_sf = TRUE)

Arguments

ssm

a foieGras ssm fitted model object

mpm

a foieGras mpm fitted model object

what.ssm

specifies whether ssm predicted or fitted values are to be extracted

as_sf

logical; if FALSE then return a tibble with un-projected lonlat coordinates, otherwise return an sf tibble

Value

a single tbl with all individuals

Examples

## load example foieGras fit objects (to save time)
## generate a fG_ssm fit object
xs <- fit_ssm(sese2, spdf=FALSE, model = "rw", time.step=72, 
control = ssm_control(se = FALSE, verbose = 0))
data(xm)

## join predicted values as an un-projected tibble
xsm <- join(xs, xm, as_sf = FALSE)
xsm

foieGras

Fit Continuous-Time State-Space and Latent Variable Models for Quality Control of Argos Satellite (and Other) Telemetry Data and for Estimating Movement Behaviour

v0.7-6
MIT + file LICENSE
Authors
Ian Jonsen [aut, cre, cph], Toby Patterson [aut, ctb]
Initial release
2021-04-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.