Collection of conversion, analytical, geodesic, mapping, and plotting functions. Used to support packages and code written by researchers at the Southwest Fisheries Science Center of the National Oceanic and Atmospheric Administration.
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:
To install the latest version from GitHub:
# make sure you have Rtools installedif (!require('devtools')) install.packages('devtools')# install from GitHubdevtools::install_github('ericarcher/swfscMisc')
DAS file functions:
sample.map. If not specified, the ranges will be set to the ranges of the
das.readto handle errors in position and suppress warnings about
NAs during numerical conversions.
das.mapto remove records with no position
isBetweento accept a vector of numbers
diversityfunction (moved from strataG package)
isBetweenfunction to test if a number is between two numbers