Learn R Programming

cwhmisc (version 6.0)

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

Description

Miscellaneous useful or interesting functions. Some parameters of functions may have changed, so beware!

Copy Link

Version

Install

install.packages('cwhmisc')

Monthly Downloads

148

Version

6.0

License

GPL (>= 2)

Last Published

August 3rd, 2015

Functions in cwhmisc (6.0)

f.log

Determine an optimized offset s and return log10(data+s).
datetime

Show date and time in ISO format
cpos

Find the position of a substring
delayt

Waiting loop for program execution
lowess.bygroup

Plot data in groups, each group with separate lowess smoothing
remove.dup.rows

Remove duplicate rows
whole.number

Check an array on whole numbers (x in I).
plt

Plot depending on switch, Create multiple plots with title and time stamp
arcs

Convert and reduce arcs
is.constant

is.constant
Halton

Halton's quasi-random numbers
signp

Sign Function
plotSymbols

Plot symbols, colours, and allow to choose
Ddim

dim of vectors and arrays
qnorm.appr

Approximation to the inverse normal distribution function.
FinneyCorr

Finney's correction to log normally distributed data, r-squared and standard deviation of a linear model.
dcm

Convert number for table columns, for equations
replacechar

Replace a character in a string by another
my.table

Tabulate data, with extra rows and columns.
pasteRound

Paste rounded values
astroC

Astronomical constants
cwhmisci

Functions not to be called directliy by the user.
panel

Alternative panel functions for lattice plots
w.median

Weighted median
cap

Change case of strings
div.prot

Protected division
digits

Test, convert numbers
functions

Functions for testing and other
int2

convert integers, string to integer wector
adaptlob

Numerically evaluate integral using adaptive rules.
clocksense

Functions for directed arcs
progress.meter

Monitor the progress of a repetitive calculation.
frac

Fractional part of number, continuous fractions
invgauss

Inverse Gaussian Distribution
pointfit

Least squares fit of point clouds, or the 'Procrustes' problem.
cwhmisc

A collection of useful functions and constants
delstr

Delete a substring from a string
tex.table

Convert a data matrix into LaTeX code.
seqm

sequences, empty if "by" not conforming
libs

List all installed packages, or all functions in a package
triplot

Ternary or Triangular Plots.
clean.na

Clean a matrix or data frame of rows or columns of containing NA.
pasteInfix

Paste(infix)
dt2str

Convert time difference to string.
jitterNA

Jitter vector containing NA
ls.functions

List available functions
shapiro.wilk.test

Shapiro-Wilk Normality Test
numer

Number theoretic functions
coords

convert coordinates, angles, simple vector operations
eql

Check on equality, including NA==NA and NaN==NaN.
mult.fig.p

Plot Setup for multiple plot, incl. main title
interpol

Polynomial and rational interpolation
printP

Print without square brackets, expression values together with their call strings
waitReturn

Wait for
hours

convert hours
lpr

Print an object
normalize

base power and multiplier
numberof

Count the number elements that satisfy a condition.
grepno

Grep utility
num.ident

Check numerical values for identity
Const

Constants
T3plot

T3plot
select.range

Select values from a vector depending on a range in a second vector.
formatFix

Format to a fixed format representation
padding

Padding a string with justification
scode

Generate the significance codes as in summary.lm
RCA

Check, build, install package in a unified manner.
smoothed.df

Fit cumulative distribution from kernel estimate.
n22dig

Show vector or matrix (of 0 <= x <=10) in a compact way
num2Latex

Convert numeric containing e+-power
astroGeo

Convert geographical coordinates to and from Swiss topo coordinates
ellipse

Generate ellipses
factor

Create primes, factor an integer, combine factors, check if prime
n2c

Show absolute values as characters, prepare for plotting
Julian date

calender conversions