Learn R Programming

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

cwhmisc (version 2.0.1)

CWH's 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

2.0.1

License

GPL version 2 or newer

Maintainer

Christian Hoffmann

Last Published

February 15th, 2017

Functions in cwhmisc (2.0.1)

numericString

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

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

Plot Setup for MULTiple FIGures, incl. Main Title
adaptlob

Numerically evaluate integral using adaptive rule.
napply

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

Show date and time in ISO format
dt2str

Convert time difference to string.
formatFix

Format to a fixed format representation
waitReturn

Wait for
like

Prepare new data for prediction
pointfit

Least squares fit of point clouds, or the Procrustes problem.
ls.functions

List available functions
numberof

Count the number elements that satisfy a condition.
cap

Change case of strings
rtf

Rational Transfer Function objects for R
shapiro.wilk.test

Shapiro-Wilk Normality Test
cwhmisc-internal

Internal cwhmisc functions
lpr

Print an object or plot
cbind.colnames

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

Generate ellipses
my.table

Tabulate data, with extra rows and columns.
libs

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

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

Convert numeric containing e+-power
str2formula

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

Set PowerPoint style
replacechar

Replace a character in a string by another
summaryFs

Print extended summary of lm.
remove.dup.rows

Remove duplicate rows
f.log

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

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

Fractional part of number
n2c

Show absolute values as characters, prepare for plotting
progress.meter

Monitor the progress of a repetitive calculation.
lengths.angle

Lengths of two vectors and angle between them.
qnorm.appr

Approximation to the inverse normal distribution function.
smoothed.df

Fit cumulative distribution from kernel estimate.
pasteInfix

Paste(infix)
panel

Alternative panel functions for lattice plots
tex.table

Convert a data matrix into LaTeX code.
plotSymbols

Plot symbols, colours, and allow to choose
signp

Sign Function
heading

Write a line of text with underlining and blank lines
num.ident

Check numerical values for identity
weighted.mean1

Weighted mean1
my.var

Correlation, Variance and Covariance (Matrices)
negbingof

Approximate a Negative binomial distribution.
persp2

Central perspective from 3 to 2 dimensions along specified axis
select.range

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

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

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

Randomized quantile residuals
jitterNA

Jitter entities with NA
lowess.bygroup

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

Padding a string with justification
invgauss

Inverse Gaussian Distribution
FinneyCorr

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

is.constant
delayt

Waiting loop for program execution
normalize

Normalize vectors
p.screeplot.princomp

Plot screeplot
strmatch

A "shortest unique identifier" match.
tri

Ternary or Triangular Plots.
seqm

sequences, empty if "by" not conforming
weighted.median

Weighted median
delstr

Delete a substring from a string
dc

Convert number for table columns, for equations
rec.prot

Protected division
tweedie

Tweedie Distributions
cpos

Find the position of a substring
poisgam

Poisson Gamma Distribution
scode

Generate the significance codes as in summary.lm
T3plot

T3plot
rotm

Rotation matrices and compute rotation angles from orthogonal matrix
pasteRound

Paste rounded values
clean.na

Clean a matrix or data frame of rows or columns of containing NA.
cwhmath-package

cwh's mathematical functions
mathlib-internal

Internal mathlib functions
rotangle

Compute rotation angles from orthogonal matrix.
cwhplot-package

cwh's plot functions