interpolate: Linearly interpolate and group locations to a regular time...

Description Usage Arguments Value Examples

Description

Provide a time interval and cutoff level to linearly interpolate a movement track.

Usage

1
2
3
4
5
interpolate(object, ...)

## S4 method for signature 'Data4M'
interpolate(object, method = "linear", Time.Step,
  Group.Cutoff = 2 * Time.Step, units = "hrs")

Arguments

object

An object of or inheriting from class Data4M.

method

Which interpolation method to use? Can be linear, fmm, or natural (the last two of which are spline methods).

Time.Step

The time interval used in the regular time grid.

Group.Cutoff

Observations which are spaced further apart than this will be separated into different group.

units

Can be one of days, hrs, mins, or secs.

Value

Returns a copy of object with the Interpolation.Parameters, Interpolated.Locations, and Movement.Data slots filled in.

Examples

1
2
sealdata<- data4M(greyseal)
sealdata<- interpolate(sealdata,Time.Step = 66, units = "mins")

lawlerem/markmodmover documentation built on Feb. 12, 2020, 8:30 p.m.