wrap_lon: Utility functions

Description Usage Arguments Details Examples

Description

Utility functions

Usage

1
wrap_lon(lon, lon_min = -180)

Arguments

lon

a vector of longitudes

lon_min

the minimum longitude value to wrap appropriately, eg. 0 to wrap -180, 180 on to 0, 360 and -180 to wrap 0,360 on to -180,180

Details

called by prefilter

Examples

1
2
3
4
lon <- seq(-180,180)
lon1 <- wrap_lon(lon, 0)
range(lon)
range(lon1)

bmcclintock/crwHMM documentation built on May 7, 2019, 12:51 a.m.