# Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

## Documentation for package ‘cwhmisc’ version 6.6

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

## Help Pages

A C D E F G H I J K L M N O P Q R S T V W X Y Z misc

cwhmisc-package | cwhmisc

## -- A --

adaptlob | Numerically evaluate integral using adaptive rules.
adaptsim | Numerically evaluate integral using adaptive rules.
allDigits | Test, convert numbers
allFactors | Create primes, factor an integer, combine factors, check if prime
angle | convert coordinates, angles, simple vector operations
ASCII | Constants
availColors | Plot symbols, colours, and allow to choose

## -- C --

c38 | Constants
c3Q | Constants
cAE | Astronomical constants
cap | Functions for strings
capitalize | Functions for strings
CapLeading | Functions for strings
capply | Functions for strings
catE | Print without square brackets, expression values together with their call strings
catn | Print without square brackets, expression values together with their call strings
Cayley | Functions for testing and other
cC | Astronomical constants
cDAYPJULCENT | Astronomical constants
cDAYPMONSID | Astronomical constants
cDAYPMONSYN | Astronomical constants
cDAYPYEARSID | Astronomical constants
cDAYPYEARTROP | Astronomical constants
cEPSOBL | Astronomical constants
charMat | Show absolute values as characters, prepare for plotting
checkNormalize | base power and multiplier, significant places
chsvd | Functions for testing and other
cJDJ2000 | Astronomical constants
cK | Astronomical constants
clean.na | Clean a matrix or data frame of rows or columns of containing NA.
ClockSense2 | Functions for directed arcs
ClockSense3 | Functions for directed arcs
Clockwise | Functions for directed arcs
cMY | Astronomical constants
conf.ellipse | Generate ellipses
contfrac | Fractional part of number, continuous fractions
countChar | Convenience functions for grep
CounterClock | Functions for directed arcs
cpos | Find the position of a substring
cposR | Find the position of a substring
cposV | Find the position of a substring
cPRECESS | Astronomical constants
cRE | Astronomical constants
cSBYE | Astronomical constants
cSBYEMY | Astronomical constants
cSBYJU | Astronomical constants
cSBYMA | Astronomical constants
cSBYME | Astronomical constants
cSBYNE | Astronomical constants
cSBYPL | Astronomical constants
cSBYSA | Astronomical constants
cSBYUR | Astronomical constants
cSBYVE | Astronomical constants
cSIDBYSOL | Astronomical constants
cSOLBYSID | Astronomical constants
cwhmisc | cwhmisc
cwhmisc-internal | Functions not to be called directliy by the user.

## -- D --

Dat2Jul | calender conversions
datetime | Show date and time in ISO format
DAYINMONTH | Astronomical constants
dc | Convert number for table columns, for equations
dcn | Convert number for table columns, for equations
Ddim | dim of vectors and arrays
deg | Convert and reduce arcs
delayt | Waiting loop for program execution
delstr | String handling
dinvgauss | Inverse Gaussian Distribution
div.prot | Protected division
divmod | Functions for testing and other
divmodL | Functions for testing and other
Dnames | calender conversions
DPY | Astronomical constants
dsm | Functions for testing and other
dt2str | Convert time difference to string.

## -- E --

ellipse1 | Generate ellipses
ellipseC | Generate ellipses
eql | Check on equality, including NA==NA and NaN==NaN.
equal | Functions for testing and other
equalFuzzy | Functions for testing and other
Eratosthenes | Create primes, factor an integer, combine factors, check if prime
Euclid | Number theoretic functions
EulerPhi | Number theoretic functions
evalcfr | Fractional part of number, continuous fractions
evalInterp | Polynomial and rational interpolation
exch | Functions for testing and other
EXPCHAR | Constants
explainLegend | Show absolute values as characters, prepare for plotting

## -- F --

f.log | Determine an optimized offset s and return log10(data+s).
factorN | Create primes, factor an integer, combine factors, check if prime
FC.lm | Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.
FinneyCorr | Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.
formatFix | Format to a fixed format representation
frac | Functions for testing and other

## -- G --

gcd | Number theoretic functions
getAp | convert coordinates, angles, simple vector operations
ggrep | Convenience functions for grep
GreatestIntAsRealF | Constants
grepnot | Convenience functions for grep

## -- H --

Halton | Halton's quasi-random numbers
Hd | convert hours
Hdms | convert hours
HexagesDig | Constants
HexDig | Constants
histRCT | Plot depending on switch, Create multiple plots with title and time stamp
Hms | convert hours
Hmsd | convert hours
HS247 | Halton's quasi-random numbers

## -- I --

indexLine | Show absolute values as characters, prepare for plotting
inrange | Functions for testing and other
insstr | Padding a string with justification, insertion
int | Functions for testing and other
int2ASCII | convert integers, string to integer vector
int2B | convert integers, string to integer vector
int2Hex | convert integers, string to integer vector
int2Oct | convert integers, string to integer vector
Inv | Number theoretic functions
is.constant | is.constant
is.prime | Create primes, factor an integer, combine factors, check if prime
IsCounterCl2 | Functions for directed arcs
IsCounterCl3 | Functions for directed arcs
isLeap | calender conversions
isNumeric | Test, convert numbers
issubstr | Find the position of a substring

## -- J --

jitterNA | Jitter vector containing NA
Jul2Dat | calender conversions
justify | Padding a string with justification, insertion

## -- K --

Km | Functions for testing and other
Ko | Functions for testing and other

## -- L --

last | Functions for testing and other
LatBerne | Convert geographical coordinates to and from Swiss topo coordinates
LB2MK | Convert geographical coordinates to and from Swiss topo coordinates
LB2YX | Convert geographical coordinates to and from Swiss topo coordinates
LE | Functions for testing and other
lerp | Polynomial and rational interpolation
libs | List all installed packages, or all functions in a package
LongBerne | Convert geographical coordinates to and from Swiss topo coordinates
loop.vp | Functions for testing and other
lower | Functions for strings
lowerize | Functions for strings
lowess.bygroup | Plot data in groups, each group with separate lowess smoothing
lpr | Print an object
LS | Functions for testing and other
ls.functions | List available functions
ls.notfunctions | List available functions
lV | Functions for testing and other

## -- M --

mdiny | calender conversions
minInterp | Polynomial and rational interpolation
Mnames | calender conversions
mod | Functions for testing and other
modexp | Number theoretic functions
modR | Functions for testing and other
modS | Functions for testing and other
monthsN | calender conversions
mpf | Convert number for table columns, for equations
mult.fig.p | Plot Setup for multiple plot, incl. main title
my.table.margin | Tabulate data, with extra rows and columns.
my.table.NA | Tabulate data, with extra rows and columns.
mydate | Show date and time in ISO format
mytime | Show date and time in ISO format

## -- N --

n22dig | Show vector or matrix (of 0 <= x <=10) in a compact way
n2c | Show absolute values as characters, prepare for plotting
n2cCompact | Show absolute values as characters, prepare for plotting
NA2str | Convert NA, NaN, Inf to a string
Nd | base power and multiplier, significant places
NdM | convert integers, string to integer vector
NoneClock | Functions for directed arcs
norm2 | Functions for testing and other
normalize | base power and multiplier, significant places
normalize1 | base power and multiplier, significant places
NprinE | Print without square brackets, expression values together with their call strings
NprinM | Print without square brackets, expression values together with their call strings
NprinP | Print without square brackets, expression values together with their call strings
NprinT | Print without square brackets, expression values together with their call strings
NprinV | Print without square brackets, expression values together with their call strings
num.ident | Check numerical values for identity
num2Latex | Convert numeric containing e+-power
numberof | Count the number elements that satisfy a condition.

## -- O --

one | Functions for testing and other
onebyx | Functions for testing and other

## -- P --

pad | Padding a string with justification, insertion
panel.cor | Alternative panel functions for lattice plots
panel.hist | Alternative panel functions for lattice plots
parsecheck | check files for parsing errors
paste00 | paste with collapse=""
pasteRound | Paste rounded values
pinvgauss | Inverse Gaussian Distribution
plotSymbols | Plot symbols, colours, and allow to choose
plotSymbolsFonts | Plot symbols, colours, and allow to choose
pltCharMat | Plot depending on switch, Create multiple plots with title and time stamp
pltRCT | Plot depending on switch, Create multiple plots with title and time stamp
pointfit | Least squares fit of point clouds, or the 'Procrustes' problem.
powr | Functions for testing and other
PRIMES | Create primes, factor an integer, combine factors, check if prime
primes | Create primes, factor an integer, combine factors, check if prime
prinE | Print without square brackets, expression values together with their call strings
prinM | Print without square brackets, expression values together with their call strings
prinP | Print without square brackets, expression values together with their call strings
prinT | Print without square brackets, expression values together with their call strings
prinV | Print without square brackets, expression values together with their call strings
prodN | Create primes, factor an integer, combine factors, check if prime
progress.meter | Monitor the progress of a repetitive calculation.
pythag | Functions for testing and other

## -- Q --

qinvgauss | Inverse Gaussian Distribution
qnorm.ap16 | Approximation to the inverse normal distribution function.
qnorm.app3 | Approximation to the inverse normal distribution function.
qnorm.app4 | Approximation to the inverse normal distribution function.
quadmin | Polynomial and rational interpolation
quotmean | Functions for testing and other

## -- R --

R2.lm | Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.
r2B | Conversion of real to string and rounding, in given base
r2Be | Conversion of real to string and rounding, in given base
rad | Convert and reduce arcs
RCA | Check, build, install package in a unified manner.
reda | Convert and reduce arcs
reda2 | Convert and reduce arcs
remove.dup.rows | Remove duplicate rows
replacechar | Replace a character in a string by another
rinvgauss | Inverse Gaussian Distribution
rotA | convert coordinates, angles, simple vector operations
rotL | convert coordinates, angles, simple vector operations
rotV | convert coordinates, angles, simple vector operations
rotZ | convert coordinates, angles, simple vector operations
roundB | Conversion of real to string and rounding, in given base

## -- S --

s.lm | Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.
safeDiv | Functions for testing and other
scm | Number theoretic functions
scode | Generate the significance codes as in summary.lm
scprod | convert coordinates, angles, simple vector operations
select.range | Select values from a vector depending on a range in a second vector.
seqm | sequences, empty if "by" not conforming
setincl | set inclusion
setupInterp | Polynomial and rational interpolation
shapiro.wilk.test | Shapiro-Wilk Normality Test
signp | Functions for testing and other
sigplaces | base power and multiplier, significant places
smoothed.df | Fit cumulative distribution from kernel estimate.
solveQeq | Functions for testing and other
SplomT | splom with title and time stamp
sqr | Functions for testing and other
sqrtH | Functions for testing and other
str2B | round real in string
str2dig | Test, convert numbers
strB2i | Conversion of real to string and rounding, in given base
strB2r | Conversion of real to string and rounding, in given base
strReverse | Functions for strings
strRound | convert integers, string to integer vector
submod | Functions for testing and other
summaryFs | Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.

## -- T --

T3plot | T3plot
tau | Constants
tex.tab0 | Convert a data matrix into LaTeX code.
tex.table | Convert a data matrix into LaTeX code.
toCFrac | Fractional part of number, continuous fractions
toCFrac2 | Fractional part of number, continuous fractions
toPol | convert coordinates, angles, simple vector operations
toRec | convert coordinates, angles, simple vector operations
toSph | convert coordinates, angles, simple vector operations
toXyz | convert coordinates, angles, simple vector operations
triplot | Ternary or Triangular Plots.

## -- V --

vecprod | convert coordinates, angles, simple vector operations

## -- W --

w.median | Weighted median
waitReturn | Wait for <Return>
Wday | calender conversions
whole | Check an array on whole numbers (x in I).

## -- X --

xtoNorthBerne | Convert geographical coordinates to and from Swiss topo coordinates

## -- Y --

Yday | calender conversions
yToEastBerne | Convert geographical coordinates to and from Swiss topo coordinates
YX2LB | Convert geographical coordinates to and from Swiss topo coordinates
YX2MK | Convert geographical coordinates to and from Swiss topo coordinates

## -- Z --

zero | Functions for testing and other

## -- misc --

%s% | convert coordinates, angles, simple vector operations
%v% | convert coordinates, angles, simple vector operations
.adaptlobstp | Functions not to be called directliy by the user.
.adaptsimstp | Functions not to be called directliy by the user.