sfsmisc v1.1-5


Monthly downloads



Utilities from 'Seminar fuer Statistik' ETH Zurich

Useful utilities ['goodies'] from Seminar fuer Statistik ETH Zurich, some of which were ported from S-plus in the 1990's. For graphics, have pretty (Log-scale) axes, an enhanced Tukey-Anscombe plot, combining histogram and boxplot, 2d-residual plots, a 'tachoPlot()', pretty arrows, etc. For robustness, have a robust F test and robust range(). For system support, notably on Linux, provides 'Sys.*()' functions with more access to system and CPU information. Finally, miscellaneous utilities such as simple efficient prime numbers, integer codes, Duplicated(), toLatex.numeric() and is.whole().



The R package sfsmisc has finally made it into a revision control system, and the fad of the day being git & github, so be it!

sfsmisc has been on CRAN for a very long time, and containing R code that is up to 17.5 years old. (See on how I got this into github, including parts of the long history.)

It is a collection of "goodies" as we used to call these nice utility functions. Whereas the package has been written and maintained by Martin Maechler, really there are quite a few more members of the SfS (Seminar fuer Statistik at ETH Zurich) who have authored some of the functions or contributed to them.


Useful utilities 'goodies' from Seminar fuer Statistik ETH Zurich, quite a few related to graphics; many ported from S-plus times.

Functions in sfsmisc

Name Description
cairoSwd Cairo PDF Graphics Device useful for Sweave
D2ss Numerical Derivatives of (x,y) Data (via Smoothing Splines)
D1D2 Numerical Derivatives of (x,y) Data via Smoothing Splines
AsciiToInt Character to and from Integer Codes Conversion
KSd Approximate Critical Values for Kolmogorov-Smirnov's D
axTexpr Axis Ticks Expressions in Nice 10 ** k Form
Duplicated Counting-Generalization of duplicated()
capture.and.write Capture output and Write / Print First and Last Parts
Deprecated Deprecated 'sfsmisc' Functions
diagDA Diagonal Discriminant Analysis
ecdf.ksCI Plot Empirical Distribution Function With 95% Confidence Curves
funEnv List-like Environment of Functions (and More)
QUnif Quasi Randum Numbers via Halton Sequences
mult.fig Plot Setup for MULTiple FIGures, incl. Main Title
cum.Vert.funkt Kumulative Verteilung Aufzeichnen
compresid2way Plot Components + Residuals for Two Factors
col01scale Matrix Scaling Utilities
TA.plot Tukey-Anscombe Plot (Residual vs. Fitted) of a Linear Model
empty.dimnames Empty Dimnames of an Array
ellipsePoints Compute Radially Equispaced Points on Ellipse
diagX The “Other” Diagonal Matrix
hatMat Hat Matrix of a Smoother
f.robftest Robust F-Test: Wald test for multiple coefficients of rlm() Object.
eaxis Extended / Engineering Axis for Graphics
digitsBase Digit/Bit Representation of Integers in any Base
integrate.xy Cheap Numerical Integration through Data points.
lseq Generate Sequences, Equidistant on Log Scale
n.code Convert "Round" Integers to Short Strings and Back
iterate.lin.recursion Generate Sequence Iterating a Linear Recursion
last Get Last Elements of a Vector
p.datum Plot 'Datum' (deutsch!) unten rechts
errbar Scatter Plot with Error Bars
is.whole Test Whether a Vector or Array Consists of Whole Numbers
factorize Prime Factorization of Integers
histBxp Plot a Histogram and a Boxplot
inv.seq Inverse seq() -- Short Expression for Index Vector
linesHyperb.lm Plot Confidence or Prediction Hyperbolas around a Regression Line
nr.sign.chg Number of Sign Changes in Sequence
missingCh Has a Formal Argument been Set or is it Missing?
mat2tex Produce LaTeX commands to print a matrix
p.tachoPlot Draw Symbol on a Plot
mpl Simple Matrix Plots
nearcor Find the Nearest Proper Correlation Matrix
n.plot Name Plot: Names or Numbers instead of Points in Plot
p.scales Conversion between plotting scales: usr, cm, symbol
p.dnorm Plot Parametric Density Functions
loessDemo Graphical Interactive Demo of loess()
p.res.2fact Plot Numeric (e.g. Residuals) vs 2 Factors Using Boxplots
p.hboxp Add a Horizontal Boxplot to the Current Plot
p.profileTraces Plot a profile.nls Object With Profile Traces
read.org.table Read.table for an Emacs Org Table
plotStep Plot a Step Function
pretty10exp Nice 10 ** k Label Expressions
p.res.2x Stahel's Residual Plot against 2 X's
polyn.eval Evaluate Polynomials
repChar Make Simple String from Repeating a Character, e.g. Blank String
rot2 Rotate Planar Points by Angle
sourceAttach Source and Attach an R source file
prt.DEBUG Utility Printing in DEBUG mode
plotDS Plot Data and Smoother / Fitted Values
potatoes Fisher's Potato Crop Data
rotn Generalized Rot13 Character Translation (Rotation)
paste.vec Utility for 'Showing' S vectors
p.arrows Prettified Arrows Plots
rrange Robust Range using Boxplot 'Quartiles'
p.ts plot.ts with multi-plots and Auto-Title -- on 1 page
printTable2 Add and Print Marginals for 2-way Contingency Tables
posdefify Find a Close Positive Definite Matrix
quadrant Give the Quadrant Number of Planar Points
roundfixS Round to Integer Keeping the Sum Fixed
ps.latex PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
str_data Overview on All Datasets in an R Package
sfsmisc-defunct Defunct Functions in Package sfsmisc
u.date Return Date[-Time] String in 'European' Format
u.log (Anti)Symmetric Log High-Transform
seqXtend Sequence Covering the Range of X, including X
u.datumdecode Convert “Numeric” Dates
tkdensity GUI Density Estimation using Tcl/Tk
tapplySimpl More simplification in tapply() result
sessionInfoX Extended Information About the Current R Session
ps.end Close PostScript or Acrobat Graphics Device opened by 'ps.do' / 'pdf.do'
xy.unique.x Uniqify (X,Y) Values using Weights
primes Find all Primes Less Than n
u.assign0 'Portable' assign / get functions (R / S-plus) for 'Frame 0'
xy.grid Produce regular grid matrix.
u.sys 'Portable' System function (R / S-plus)
u.boxplot.x Utility Returning x-Coordinates of Boxplot
uniqueL A Reversable Version of unique()
signi Rounding to Significant Digits
unif Nice Uniform Points in Interval
vcat Paste Utilities -- Concatenate Strings
toLatex.numeric LaTeX or Sweave friendly Formatting of Numbers
u.Datumvonheute Datum und Uhrzeit (auf deutsch)
wrapFormula Enhance Formula by Wrapping each Term, e.g., by "s(.)"
No Results!

Last month downloads


Include our badge in your README