swfscMisc is a collection of utility functions used at the Southwest Fisheries Science Center in La Jolla, CA. The package contains functions for geodesic calculations, commonly used mapping functions, plotting special symbols, interacting with DAS sighting data generated by the line-transect survey data entry program WinCruz, and miscellaneous analytical and conversion functions.
To install the stable version from CRAN:
install.packages('swfscMisc')
To install the latest version from GitHub:
# make sure you have Rtools installed
if (!require('devtools')) install.packages('devtools')
# install from GitHub
devtools::install_github('ericarcher/swfscMisc')
plotAssignments
function.autoUnits
functionlat.range
and lon.range
to NULL
in sample.map
. If not specified, the ranges will be set to the ranges of the lat
and lon
.transparent
functiondas.read
to handle errors in position and suppress warnings about NA
s during numerical conversions.das.map
to remove records with no positionisBetween
to accept a vector of numbersdiversity
function (moved from strataG package)isBetween
function to test if a number is between two numbers