Description Usage Arguments Details Value Author(s) See Also Examples
This function applies a function on an object of class "ltraj", using a sliding window.
1 2 3 |
ltraj |
an object of class |
fun |
the function to be applied, implying at least one of the
descriptive parameters in the object of class |
step |
the half-width of the sliding window. If
|
type |
character string. If |
units |
if |
plotit |
logical. Whether the result should be plotted |
... |
additional arguments to be passed to the function
|
An object of class ltraj is a list with one component per burst of
relocations. The function fun
is applied to each burst of
relocations. This burst of relocations should be refered as x
in fun
. For example, to compute the mean of the distance
between successive relocations, the function fun
is equal to
function(x) mean(x$dist)
.
Do not forget that some of the descriptive parameters in the object
ltraj
may contain missing values (see
help(ltraj)
). The function should therefore specify how to
manage these missing values.
If type=="locs"
, a list with one component per burst of
relocation containing the smoothed values for each relocation.
If type=="locs"
, a list with one component per burst of
relocation. Each component is a data frame containing the time and
the corresponding smoothed values for each date.
Clement Calenge clement.calenge@oncfs.gouv.fr
ltraj
for additional information about objects
of class ltraj
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.