join | R Documentation |
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
.
join(
ssm,
mpm,
what.ssm = "predicted",
as_sf = FALSE,
normalise = FALSE,
group = FALSE
)
ssm |
an |
mpm |
an |
what.ssm |
specifies whether ssm |
as_sf |
logical; if FALSE then return a tibble with un-projected lonlat coordinates, otherwise return an sf tibble |
normalise |
logical; if output includes a move persistence estimate, should g (the move persistence index) be normalised to have minimum = 0 and maximum = 1 (default = FALSE). |
group |
logical; should g be normalised among individuals as a group, a 'relative g', or separately to highlight regions of lowest and highest move persistence along a track (default = FALSE). |
a single tbl with all individuals
## load example aniMotum fit objects (to save time)
## generate a ssm fit object
xs <- fit_ssm(ellie, spdf=FALSE, model = "rw", time.step=24, control = ssm_control(verbose = 0))
xm <- fit_mpm(xs, what = "p", model = "mpm")
## join predicted values as an un-projected tibble
xsm <- join(xs, xm)
xsm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.