swfscMisc
Description
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.
Installation
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')Contact
- submit suggestions and bug-reports: https://github.com/ericarcher/swfscMisc/issues
- send a pull request: https://github.com/ericarcher/swfscMisc/
- e-mail: eric.archer@noaa.gov
Current functions
Geodesic functions:
- bearing
- datum
- distance
- circle.polygon
- convert.angle
- convert.distance
DAS file functions:
- das.map
- das.merge.acoustic
- das.read
- das.spp.freq
Mapping functions:
- lat.lon.axes
- sample.map
Plotting functions:
- braces
- catSpatInterp Categorical Spatial Interpolation
- color.name
- lab.wid
- row.col.page.fit
- scatterdens
- scatterhist
- sex.symbols
Miscellaneous functions:
- affin.prop
- box.area
- central.quantile
- copy.tri
- crossing.point
- diversity
- fisher.method.p
- geometric.mean
- harmonic.mean
- isBetween
- na.count
- normalize
- odds conversion (odds, invOdds, logOdds, invLogOdds)
- one.arg
- plotAssignments
- pVal
- ceiling, floor, trunc, round (.data.frame)
- uniform.test
- setupClusters
- which.nearest
- zero.pad
version 1.4 (devel)
- added catSpatInterp for Categorical Spatial Interpolation (based on code by Timo Grossenbacher)
- begin deprecation of das.* functions. to be removed in v1.5.
- change
destination()to accept vectors and return a matrix. - fixed
plotAssignments()to not change class names. - updated spatstat import
version 1.3 (on CRAN)
- fixed plotAssignments to use facets and removed grids and space around panels
- added setupClusters
version 1.2
- Added rounding functions for data.frames.
- Removed NEWS.md - changelog moved to README.md
- Added
plotAssignmentsfunction.
version 1.1
- Added
autoUnitsfunction - Changed default arguments for
lat.rangeandlon.rangetoNULLinsample.map. If not specified, the ranges will be set to the ranges of thelatandlon.
version 1.0.9
- Added
transparentfunction - Changed distance and destination functions to accept partial matches for method
of calculation, type of surface, and units
version 1.0.8
- Fixed
das.readto handle errors in position and suppress warnings aboutNAs
during numerical conversions.
- Fixed
das.mapto remove records with no position
version 1.0.7
- Changed
isBetweento accept a vector of numbers
version 1.0.6
- Added NEWS.md
- Added
diversityfunction (moved from strataG package) - Added
isBetweenfunction to test if a number is between two numbers