Irucka Embry's Miscellaneous Functions

A collection of Irucka Embry's miscellaneous functions (Engineering Economics, Civil & Environmental/Water Resources Engineering, Geometry, Statistics, GNU Octave length functions, Trigonometric functions in degrees, etc.).


R package that contains Irucka Embry's miscellaneous functions: statistical analysis [RMS, coefficient of variation (CV), approximate and relative error, range, harmonic mean, geometric mean], engineering economics (benefit-cost, future value, present value, annual value, gradients, interest, periods, etc.), geometry (sphere volume and right triangle), civil & environmental/water resources engineering (Concrete Mix Design for Normal Strength Concrete, Manning's n, Gauckler-Manning-Strickler equation), a version of linear interpolation for use with NAs, GNU Octave/MATLAB compatible trigonometric functions in degrees, & GNU Octave/MATLAB compatible size, numel, and length functions.

Installation

install.packages("iemisc")

Examples (see more examples in the vignette and in the function descriptions)

library(iemisc)
require(stats)
 
# 1)
set.seed(200) # makes the example reproducible
 
samp <- rnorm(200) # sample
 
 
# Calculate the sample harmonic mean (SHM) of the 200 values
# Using the default value of na.rm = FALSE
# using a matrix of the numeric vector obs1
samp1 <- matrix(data = samp, nrow = length(samp), ncol = 1, byrow = FALSE,
dimnames = list(c(rep("", length(samp))), "Sample"))
 
shm(samp1)
 
 
 
# 2)
# Compute the relative error of the 210 values
set.seed(210) # makes the example reproducible
true <- rnorm(210) # true
approx <- rnorm(210) # approximation
 
relerror(true, approx)
 
 
 
# 3)
# Are any of the following right triangles?
 
righttri(2, 7) # a = 2, b = 7
 
righttri(a = 4, c = 11)
 
righttri(b = 4, c = 5)
 
 
 
# 4)
# What is the future worth of $2,390.90 in the present 13 years from now with a
# 0.25% interest rate compounded annually?
 
FgivenP(2,390.90, 13, 0.25, frequency = "annual") # the interest rate is 0.25%

Disclaimer

This software is provided "AS IS." See the GPL License for more information.

License

iemisc is distributed under the GPL-3 (or later) license, as stated in the DESCRIPTION file. For more info, see the GNU General Public License (GPL) page.

News

iemisc 0.9.6

  • Revised the vignette and changed the vignette filename and title
  • Added iemiscdata and import as imported R packages (Issue #1 by jangorecki)
  • Added iemiscdata and import as imports in functions as needed (Issue #1 by jangorecki)
  • Added the concr_mix_normal_strength function
  • Added gsubfn and fpCompare as imported R packages for the concr_mix_normal_strength function

iemisc 0.9.5

  • Added GNU Octave/MATLAB compatible trigonometric functions in degrees (cosd, acosd, sind, asind, tand, atand, secd, asecd, cscd, acscd, cotd, acotd, atan2d)

iemisc 0.9.2

  • Added ie2misc, ie2miscdata as suggested R packages

iemisc 0.9.1

  • Added more examples to the README.md
  • Revised the examples in these functions: Manningtri, Manningtrap, Manningrect, Manningpara, Manningcirc
  • Updated the Open Channel Flow problems vignette

iemisc 0.9.0

  • Updated these functions: Manningtri, Manningtrap, Manningrect, Manningpara, Manningcirc
  • Added an Open Channel Flow problems vignette
  • Added install.load as a suggested R package

iemisc 0.5.2

  • Updated these functions: size, righttri, Manningtri, Manningtrap, Manningrect, Manningpara, Manningcirc

iemisc 0.5.1

  • Renamed lengths to length_octave
  • Updated these functions: size, righttri, Manningtri, Manningtrap, Manningrect, Manningpara, Manningcirc
  • Added iemiscdata as a suggested R package

iemisc 0.5.0

  • Initial release

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("iemisc")

0.9.6 by Irucka Embry, 4 months ago


https://gitlab.com/iembry/iemisc


Report a bug at https://gitlab.com/iembry/iemisc/issues


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


Authors: Irucka Embry [aut, cre], Felix Andrews [aut, ctb] (zoo), Hans Werner Borchers [aut, ctb] (pracma), Samit Basu [aut, ctb] (FreeMat)


Documentation:   PDF Manual  


GPL (>= 3) license


Imports zoo, pracma, iemiscdata, import, gsubfn, fpCompare

Depends on stats, data.table

Suggests install.load, ie2misc, ie2miscdata, Rcpp, RcppOctave, NISTunits, financial, optiRum, rivr, knitr, rmarkdown


Suggested by ie2misc, ie2miscdata, iemiscdata.


See at CRAN