paths_gam_interp {anipaths}R Documentation

Synchronous GAM interpolation of all paths

Description

Synchronous GAM interpolation of all paths

Usage

paths_gam_interp(paths, coord, Time.name, time.grid, s_args = NULL)

Arguments

paths

lists of data.frames containing positions, times, and covariate for each individual

coord

two-vector of character strings giving names of x and y coordinates in data.frames

Time.name

character string giving name of time variable in data.frames

time.grid

grid of possible times to use for interpolation (individuals will only be interpolated to times within the range of observation times)

s_args

Arguments to mgcv::s() can be passed using a named list/vector.

Value

list of interpolated paths by individual


[Package anipaths version 0.10.1 Index]