grab: grab tbl's by name from a crwHMM fitted model object

Description Usage Arguments Value Examples

Description

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

Usage

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

Arguments

x

a crwHMM fitted model object

what

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

as_sf

logical; if FALSE then return a tibble with unprojected lonlat coordinates, otherwise return an sf tibble

Value

a tbl with all individual tbl's appended

Examples

1
2
3
4
## load example crwHMM fit object (to save time)
data(fit)
## grab predicted values as an unprojected tibble
preds <- grab(fit, what = "p", as_sf = FALSE)

bmcclintock/crwHMM documentation built on May 7, 2019, 12:51 a.m.