Learn R Programming

inlabru (version 2.8.0)

import.seals: Seal pup edata import

Description

Generate Spatial objects from raw seal pup survey data (not inlcuded in inlabru). Note that this function will only extract one of the survey transects.

Usage

import.seals(
  sealfile = "WestIce2012.csv",
  icefile = "reflectance_0.0025deg_grid_modis_20120328_1310.tif"
)

Value

The seals data set

Arguments

sealfile

Character pointing to the file containing the seal counts and photo locations

icefile

Character pointing to the .tif file containing the ice sheet covariate

Author

Fabian E. Bachl bachlfab@gmail.com

Load seal data Turn seal data into spatial object To avoid confusion I remove the x-y coordinates created by Martin Change CRS Select a strip Add total number of seals Build a mesh. This mesh will be fine at the photo locations but coarse elsewhere Let's plot the observed counts Ice Covariate Interpolate ice covariate Add band1 covariate to seals data frame Plot seal count and ice together Create a data set