# Irucka Embry's Miscellaneous Functions

## Documentation for package ‘iemisc’ version 1.0.4

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A B C D E F I K L M N P R S T U V W misc

## -- A --

acosd | Inverse cosine (in degrees) [GNU Octave/MATLAB compatible]
acotd | Inverse cotangent (in degrees) [GNU Octave/MATLAB compatible]
acscd | Inverse cosecant (in degrees) [GNU Octave/MATLAB compatible]
AF | Annual value given Future value (Engineering Economics)
AgivenF | Annual value given Future value (Engineering Economics)
AgivenFcont | Annual value given Future value [continuous] (Engineering Economics)
AgivenG | Annual value given Gradient value (Engineering Economics)
AgivenP | Annual value given Present value (Engineering Economics)
AgivenPcont | Annual value given Present value [continuous] (Engineering Economics)
air_stripper | Design of Packed Column Air Strippers
AP | Annual value given Present value (Engineering Economics)
approxerror | Approximate error
asecd | Inverse secant (in degrees) [GNU Octave/MATLAB compatible]
asind | Inverse sine (in degrees) [GNU Octave/MATLAB compatible]
atan2d | "Two-argument arc-tangent" (in degrees) [GNU Octave/MATLAB compatible]
atand | Inverse tangent (in degrees) [GNU Octave/MATLAB compatible]

## -- B --

benefitcost | Benefit-Cost Ratio (Engineering Economics)

## -- C --

colebrook | Accurately calculate the Colebrook-White equation to obtain the Darcy-Weisbach friction factor
CompIntCharg | Compound Interest Charged (Engineering Economics)
CompIntPaid | Compound Interest Paid (Engineering Economics)
concr_mix_lightweight_strength | Concrete Mix Design for Structural Lightweight Concrete
concr_mix_normal_strength | Concrete Mix Design for Normal Strength (Normal-weight) Concrete
construction_decimal | Construction Decimal
construction_decimal_eng | Construction Decimal Engineering (LibreCAD Style)
construction_fraction | Construction Fraction
cosd | Cosine (in degrees) [GNU Octave/MATLAB compatible]
cotd | Cotangent (in degrees) [GNU Octave/MATLAB compatible]
cscd | Cosecant (in degrees) [GNU Octave/MATLAB compatible]
cv | Coefficient of variation (CV)
c_composite_CN | Composite CN (Curve Number) with Connected Impervious Area

## -- D --

density_water | Density of Saturated Liquid Water
dyn_visc_water | Absolute or Dynamic Viscosity for Liquid Water

## -- E --

EffInt | Effective Interest rate (Engineering Economics)
engr_survey | Conversion of Engineering Survey Measurements to Decimal Degrees (KY and TN)
engr_survey2 | Calculate the Distance between Engineering Survey Points
engr_survey3 | Calculate the Distance between Engineering Survey Points (Length or Number of Stations)
engr_survey4 | Calculate the Station Distance between Engineering Survey Points
engr_survey_batch | Conversion of Engineering Survey Measurements to Decimal Degrees (KY and TN) - Batch
engr_survey_reverse | Conversion of Latitude/Longitude Coordinates to Engineering Survey Measurements (KY and TN)

## -- F --

f1 | Laminar Flow Equation
f2 | Moody Equation
f3 | Romeo, et. al. Equation
f4 | Žarko Ćojbašića and Dejan Brkić Equation
f5 | Colebrook-White Equation
f6 | Swamee-Jaine Equation
f7 | Zigrang-Sylvester Equation
f8 | Vatankhah Equation
FA | Future value given Annual value (Engineering Economics)
FgivenA | Future value given Annual value (Engineering Economics)
FgivenAcont | Future value given Annual value [continuous] (Engineering Economics)
FgivenP | Future value given Present value (Engineering Economics)
FgivenPcont | Future value given Present value [continuous] (Engineering Economics)
FP | Future value given Present value (Engineering Economics)
fractdiff | Fractional Differences (GNU Octave/MATLAB compatible)
frac_to_numeric | Fraction (or Mixed number) to a Decimal (Numeric Vector)

## -- I --

igivenICPn | Simple Interest rate given Interest Charged, Number of years, and Principal value
igivenPFn | Interest rate given Future value, Number of periods, and Present value (Engineering Economics)
iscolumn | Column Vector (GNU Octave/MATLAB compatible)
isrow | Row Vector (GNU Octave/MATLAB compatible)

## -- K --

kin_visc_water | Kinematic Viscosity for liquid Water

## -- L --

lat_long2state | United States of America (USA) State Identification Using Latitude/Longitude Coordinates
lat_long2utm | Conversion of Latitude/Longitude to UTM Coordinates
length_octave | Length of R objects (GNU Octave/MATLAB compatible)
lookupQT | Hash Table/Dictionary Lookup These functions were originally contained in "qdapTools" version 1.3.4 'lookup' - 'data.table' based hash table useful for large vector lookups.

## -- M --

Manningcirc | Circular Cross-section Using the Gauckler-Manning-Strickler Equation 1
Manningcircy | Circular Cross-section Using the Gauckler-Manning-Strickler Equation 2
Manningpara | Parabolic cross-section for the Gauckler-Manning-Strickler equation
Manningrect | Rectangular cross-section for the Gauckler-Manning-Strickler equation
Manningtrap | Trapezoidal cross-section for the Gauckler-Manning-Strickler equation
Manningtrap_critical | Trapezoidal cross-section for the Gauckler-Manning-Strickler equation (critical parameters)
Manningtri | Triangular cross-section for the Gauckler-Manning-Strickler equation
maxmre | Maximum Mean relative error (MAXRE)
Mod_octave | Modulus Operation (GNU Octave/MATLAB compatible)
mortality_rate | Mortality Rate
mortality_rate_pct | Mortality Rate Percent
mre | Mean relative error (MRE)

## -- N --

n | Manning's n for natural channels
na.interp1 | na.interp1
nc1 | Horton method for composite Manning's n
nc2 | Einstein and Banks method for composite Manning's n
nc3 | Lotter method for composite Manning's n
nc4 | Krishnamurthy and Christensen method for composite Manning's n
ndims | Number of dimensions in an Array (GNU Octave/MATLAB compatible)
ngivenPFi | To Find i Given F, n, and P (Engineering Economics)
numel | Number of elements (GNU Octave/MATLAB compatible)

## -- P --

PA | Present value given Annual value (Engineering Economics)
PF | Present value given Future value (Engineering Economics)
PgivenA | Present value given Annual value (Engineering Economics)
PgivenA1 | Present value for geometric gradient series (Engineering Economics)
PgivenAcont | Present value given Annual value [continuous] (Engineering Economics)
PgivenF | Present value given Future value (Engineering Economics)
PgivenFcont | Present value given Future value [continuous] (Engineering Economics)
PgivenFivary | "Present equivalent of a series of future cash flows subject to varying interest rates" (Engineering Economics)
PgivenG | Present value given Gradient value (Engineering Economics)
polygon_area | Polygon Area (using the Shoelace Formula)
project_midpoint | Calculate the midpoint between two coordinates (KY and TN)
prop_mortality_ratio | Proportional Mortality Ratio
prop_solver | Proportion Solver

## -- R --

rain_garden_driveway | Rain Garden Sizing for Driveways
ranges | Sample range
rational_formula | Modified Rational Method Equation
Re1 | Calculating the Reynolds Number 1
Re2 | Calculating the Reynolds Number 2
Re3 | Calculating the Reynolds Number 3
Re4 | Calculating the Reynolds Number 4
reduce_single_digit | Reduce an Integer, a Date (Time), or a Number (with or without Decimals) to a Single Integer
relerror | Relative error
Rem | Remainder After Division (GNU Octave/MATLAB compatible)
righttri | Right triangle calculations
rms | Root-mean-square

## -- S --

sat_vapor_pressure | Saturation Vapor Pressure for Water
sat_vapor_pressure_ice | Saturation Vapor Pressure for Ice
sec | Secant (in radians)
secd | Secant (in degrees) [GNU Octave/MATLAB compatible]
secprop | Section Properties Calculator [GNU Octave/MATLAB]
sgm | Geometric mean
shm | Harmonic mean
SimpIntCharg | Simple Interest Charged (Engineering Economics)
SimpIntPaid | Simple Interest Paid (Engineering Economics)
sind | Sine (in degrees) [GNU Octave/MATLAB compatible]
size | Size of R objects (GNU Octave/MATLAB compatible)
splitcomma | Split Comma
splitremove | Split Remove
sp_gravity | Specific Volume
sp_volume | Specific Volume
surface_area | Calculate the Total Surface Area of Linear Surfaces
surf_tens_water | Water Surface Tension for Liquid Water

## -- T --

tand | Tangent (in degrees) [GNU Octave/MATLAB compatible]

## -- U --

uc_composite_CN | Composite CN (Curve Number) with Unconnected Impervious Area
unit_wt | Unit Weight or Specific Weight

## -- V --

volsphere | Sphere volume

## -- W --

weighted_C | Calculate the Weighted C factor
weighted_CN | Calculate the Weighted CN (Curve Number)

## -- misc --

%//% | Floor Division (Python compatible)
%inorder% | IN ORDER for Character and Numeric Vectors
%notchin% | Not CHIN or IN for Character and Numeric Vectors
%qsin% | Quick Search