Synchronous interpolation of covariate using either GAM (same as paths) or piece-wise constant if covariate is a factor
covariate_interp(paths, covariate = NULL, Time.name, time.grid, s_args)
list of interpolated covariate by individual
lists of data.frames containing positions, times, and covariate for each individual
character string giving name of covariate variable in data.frames
character string giving name of time variable in data.frames
grid of possible times to use for interpolation (individuals will only be interpolated to times within the range of observation times)
arguments to mgcv::s()
for GAM interpolation method