Learn R Programming

⚠️There's a newer version (6.0) of this package.Take me there.

cwhmisc (version 3.0)

Miscellaneous Functions for maths, plotting, printing, statistics, strings, and tools

Description

Miscellaneous useful functions collected over time

Copy Link

Version

Install

install.packages('cwhmisc')

Monthly Downloads

110

Version

3.0

License

GPL (>= 2)

Maintainer

Christian Hoffmann

Last Published

January 19th, 2012

Functions in cwhmisc (3.0)

is.constant

is.constant
weighted.median

Weighted median
div.prot

Protected division
like

Prepare new data for prediction
n2c

Show absolute values as characters, prepare for plotting
panel

Alternative panel functions for lattice plots
invgauss

Inverse Gaussian Distribution
tri

Ternary or Triangular Plots.
pointfit

Least squares fit of point clouds, or the Procrustes problem.
f.log

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

Extract sides of a formula to strings, Convert back to a formula
interpol

Polynomial and rational interpolation
num.ident

Check numerical values for identity
cbind.colnames

Add columns to a data frame, using variable names.
datetime

Show date and time in ISO format
adaptlob

Numerically evaluate integral using adaptive rule.
scode

Generate the significance codes as in summary.lm
heading

Write a line of text with underlining and blank lines
replacechar

Replace a character in a string by another
persp2

Central perspective from 3 to 2 dimensions along specified axis
my.table

Tabulate data, with extra rows and columns.
ls.functions

List available functions
poisgam

Poisson Gamma Distribution
plotSymbols

Plot symbols, colours, and allow to choose
mult.fig.p

Plot Setup for MULTiple FIGures, incl. Main Title
summaryFs

Print extended summary of lm.
FinneyCorr

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

Plot depending on switch, Create multiple plots with title and time stamp
progress.meter

Monitor the progress of a repetitive calculation.
waitReturn

Wait for
cpos

Find the position of a substring
lowess.bygroup

Plot data in groups, each with lowess or loess smoothing
frac

Fractional part of number
remove.dup.rows

Remove duplicate rows
jitterNA

Jitter entities with NA
numberof

Count the number elements that satisfy a condition.
p.screeplot.princomp

Plot screeplot
select.range

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

Convert numeric containing e+-power
rotm

Rotation matrices and compute rotation angles from orthogonal matrix
delayt

Waiting loop for program execution
lengths.angle

Lengths of two vectors and angle between them.
strmatch

A "shortest unique identifier" match.
cap

Change case of strings
pasteInfix

Paste(infix)
qnorm.appr

Approximation to the inverse normal distribution function.
ellipse

Generate ellipses
delstr

Delete a substring from a string
qres

Randomized quantile residuals
T3plot

T3plot
whole.number

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

Fit cumulative distribution from kernel estimate.
setPowerPointStyle

Set PowerPoint style
lpr

Print an object or plot
shapiro.wilk.test

Shapiro-Wilk Normality Test
libs

List all installed packages, or all functions in a package
tex.table

Convert a data matrix into LaTeX code.
dc

Convert number for table columns, for equations
eql

Check on equality, including NA==NA and NaN==NaN.
normalize

Normalize vectors
negbingof

Approximate a Negative binomial distribution.
napply

Apply a function to the corresponding elements of two lists (?)
padding

Padding a string with justification
dt2str

Convert time difference to string.
signp

Sign Function
printP

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

Solve linear and quadratic equations.
rtf

Rational Transfer Function objects for R
formatFix

Format to a fixed format representation
numericString

Test string for being a number or made up of digits only, convert to bases.
cwhmisc-internal

Internal cwhmisc functions
pasteRound

Paste rounded values
seqm

sequences, empty if "by" not conforming
clean.na

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

Show vector or matrix (of 0 <= x <=1) in a compact way
weighted.mean1

Weighted mean1