mw_analysis: LoCoHverlap Moving Window Analysis

Description Usage Arguments Details

View source: R/wf_moving_window.R

Description

Runs a full moving window analysis on a dataset.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mw_analysis(
  dat,
  start,
  width,
  step,
  end,
  crs = sf::NA_crs_,
  type = "a",
  n = a_default(dat),
  res = 500,
  verbose = TRUE
)

Arguments

dat

[data.frame | list] The location data used for fitting the LoCoH. Can be a single data.frame or a list of data.frames with the following columns:

  • $x – The x-coordinate of the animal's location

  • $y – The y-coordinate of the animal's location

  • $t – The date and time (as a POSIXct object) of the location

start

[POSIXt] The start date and time for the first window.

width

[Period] A Period object specifying the width of each moving window.

step

[Period] A Period object specifying the space between start times for each moving window.

end

[POSIXt] The last date and time to include at the end of a window.

crs

[sf::crs = sf::NA_crs_] The (optional) coordinate reference system for the location data. May also be passed as an integer representing the EPSG code.

type

[character = "a"] The type of neighbor rule used to create the local hulls. Should be one of "a" (default), "k", or "r".

n

[numeric = NA] The value to use for the neighbor rule, i.e., the value of either a, k, or r used to fit the local hulls.

res

[numeric = 500] The resolution of the RasterLayer to create as the template raster. Units should be in the units of the CRS, e.g. if proj=utm, units should be in meters and if proj=longlat, units should be in degrees. Defaults to 500 (assumes meters).

verbose

[logical = TRUE] Should the function report what step it is on? Defaults to TRUE and cats updates as it works.

Details

Current implementation does not accept a custom raster like fit_locoh() does.


bsmity13/LoCoHverlap documentation built on Feb. 15, 2021, 12:43 p.m.