Learn R Programming

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

cwhmisc (version 5.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

40

Version

5.0

License

GPL (>= 2)

Maintainer

Christian Hoffmann

Last Published

October 15th, 2014

Functions in cwhmisc (5.0)

datetime

Show date and time in ISO format
n2c

Show absolute values as characters, prepare for plotting
interpol

Polynomial and rational interpolation
cap

Change case of strings
heading

Write a line of text with underlining and blank lines. Useful for line oriented output.
my.table

Tabulate data, with extra rows and columns.
remove.dup.rows

Remove duplicate rows
digits

Test, convert numbers
mult.fig.p

Plot Setup for multiple plot, incl. main title
cwhmisc-package

A collection of useful functions and constants
numberof

Count the number elements that satisfy a condition.
printP

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

Numerically evaluate integral using adaptive rules.
ellipse

Generate ellipses
astroC

Astronomical constants
eql

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

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

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

Check numerical values for identity
is.constant

is.constant
lowess.bygroup

Plot data in groups, each group with separate lowess smoothing
select.range

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

Plot symbols, colours, and allow to choose
vector

simple vector operations
formatFix

Format to a fixed format representation
arcs

Convert and reduce arcs
factor

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

base power and multiplier
jitterNA

Jitter vector containing NA
w.median

Weighted median
RCA

Check, build, install package in a unified manner.
ls.functions

List available functions
signp

Sign Function
grepnot

Grep utility
pasteRound

Paste rounded values
pasteInfix

Paste(infix)
padding

Padding a string with justification
replacechar

Replace a character in a string by another
n22dig

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

Convert number for table columns, for equations
delstr

Delete a substring from a string
scode

Generate the significance codes as in summary.lm
plt

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

Alternative panel functions for lattice plots
shapiro.wilk.test

Shapiro-Wilk Normality Test
dt2str

Convert time difference to string.
qnorm.appr

Approximation to the inverse normal distribution function.
numer

Number theoretic functions
T3plot

T3plot
waitReturn

Wait for
rotL

Rotation matrices
clocksense

Functions for directed arcs
triplot

Ternary or Triangular Plots.
whole.number

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

Monitor the progress of a repetitive calculation.
coords

convert coordinates, angles
hours

convert hours
smoothed.df

Fit cumulative distribution from kernel estimate.
Dim

dim of vectors and arrays
invgauss

Inverse Gaussian Distribution
lpr

Print an object or plot
num2Latex

Convert numeric containing e+-power
libs

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

Halton's quasi-random numbers
seqm

sequences, empty if "by" not conforming
f.log

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

Convert geographical coordinates to and from Swiss topo coordinates
frac

Fractional part of number, continuous fractions
int2

convert integers, string to integer wector
tex.table

Convert a data matrix into LaTeX code.
cpos

Find the position of a substring
setPPT

Set PowerPoint style
Const

Constants
delayt

Waiting loop for program execution
div.prot

Protected division
functions

Functions for testing and other
pointfit

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