Miscellaneous Functions for Southwest Fisheries Science Center

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:

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')
  • 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
    • 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
    • which.nearest
    • zero.pad
  • Added rounding functions for data.frames.
  • Removed NEWS.md - changelog moved to README.md
  • Added plotAssignments function.
  • Added autoUnits function
  • Changed default arguments for lat.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.
  • Added transparent function
  • Changed distance and destination functions to accept partial matches for method of calculation, type of surface, and units
  • Fixed das.read to handle errors in position and suppress warnings about NAs during numerical conversions.
  • Fixed das.map to remove records with no position
  • Changed isBetween to accept a vector of numbers
  • Added NEWS.md
  • Added diversity function (moved from strataG package)
  • Added isBetween function to test if a number is between two numbers

News

swfscMisc 1.0.6

  • Added NEWS.md
  • Added 'diversity' function (moved from strataG package)
  • Added 'isBetween' function to test if a number is between two numbers
  • Updated README.md
  • Fixed 'zero.pad' to pad to largest integer.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("swfscMisc")

1.2 by Eric Archer, a year ago


https://github.com/EricArcher/swfscMisc


Report a bug at https://github.com/EricArcher/swfscMisc/issues


Browse source code at https://github.com/cran/swfscMisc


Authors: Eric Archer [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports graphics, grDevices, ggplot2, maps, reshape2, spatstat, stats, utils

Depends on mapdata


Imported by rfPermute, skeleSim, sprex, strataG.


See at CRAN