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

grab

grab tibble's by name from a foieGras model object


Description

grab() lets you obtain fitted, predicted, or data tibble's from a compound tibble created when fitting to multiple individual data sets. The specified tibble's are appended to a single output tibble.

Usage

grab(x, what = "fitted", as_sf = TRUE)

Arguments

x

a foieGras ssm or mpm model object

what

the tibble to be grabbed; either fitted, predicted (ssm only), or data (single letters can be used)

as_sf

logical; if FALSE then return a tibble with un-projected lonlat coordinates, otherwise return an sf tibble. Ignored if x is an mpm model object.

Value

a tibble with all individual tibble's appended

Examples

## generate a fG_ssm fit object
xs <- fit_ssm(sese2, spdf=FALSE, model = "rw", time.step=72, 
control = ssm_control(se = FALSE, verbose = 0))

## grab predicted values as an un-projected tibble
preds <- grab(xs, what = "predicted", as_sf = FALSE)

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.