Learn R Programming

sfsmisc

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.

DESCRIPTION

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

Copy Link

Version

Install

install.packages('sfsmisc')

Monthly Downloads

21,633

Version

1.1-19

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 19th, 2024

Functions in sfsmisc (1.1-19)

AsciiToInt

Character to and from Integer Codes Conversion
D1D2

Numerical Derivatives of (x,y) Data via Smoothing Splines
D2ss

Numerical Derivatives of (x,y) Data (via Smoothing Splines)
Deprecated

Deprecated 'sfsmisc' Functions
QUnif

Quasi Randum Numbers via Halton Sequences
TA.plot

Tukey-Anscombe Plot (Residual vs. Fitted) of a Linear Model
ecdf.ksCI

Plot Empirical Distribution Function With 95% Confidence Curves
digitsBase

Digit/Bit Representation of Integers in any Base
diagDA

Diagonal Discriminant Analysis
integrate.xy

Cheap Numerical Integration through Data Points
inv.seq

Inverse seq() -- Short Expression for Index Vector
diagX

The “Other” Diagonal Matrix
ellipsePoints

Compute Radially Equispaced Points on Ellipse
empty.dimnames

Empty Dimnames of an Array
errbar

Scatter Plot with Error Bars
eaxis

Extended / Engineering Axis for Graphics
last

Get Last Elements of a Vector
capture.and.write

Capture output and Write / Print First and Last Parts
loessDemo

Graphical Interactive Demo of loess()
list_named

Automatically Named list()
helppdf

help() Type="pdf" and View It
n.plot

Name Plot: Names or Numbers instead of Points in Plot
cairoSwd

Cairo PDF Graphics Device useful for Sweave
axTexpr

Axis Ticks Expressions in Nice 10 ** k Form
linesHyperb.lm

Plot Confidence or Prediction Hyperbolas around a Regression Line
Duplicated

Counting-Generalization of duplicated()
nearcor

Find the Nearest Proper Correlation Matrix
col01scale

Matrix Scaling Utilities
pkgDesc

Version of packageDescription() as Simple Vector
n.code

Convert "Round" Integers to Short Strings and Back
mult.fig

Plot Setup for MULTiple FIGures, incl. Main Title
histBxp

Plot a Histogram and a Boxplot
compresid2way

Plot Components + Residuals for Two Factors
cum.Vert.funkt

Kumulative Verteilung Aufzeichnen
p.res.2fact

Plot Numeric (e.g. Residuals) vs 2 Factors Using Boxplots
p.res.2x

Stahel's Residual Plot against 2 X's
KSd

Approximate Critical Values for Kolmogorov-Smirnov's D
funEnv

List-like Environment of Functions (and More)
f.robftest

Robust F-Test: Wald test for multiple coefficients of rlm() Object
hatMat

Hat Matrix of a Smoother
factorize

Prime Factorization of Integers
plotDS

Plot Data and Smoother / Fitted Values
read.org.table

Read.table for an Emacs Org Table
quadrant

Give the Quadrant Number of Planar Points
sfsmisc-defunct

Defunct Functions in Package sfsmisc
p.hboxp

Add a Horizontal Boxplot to the Current Plot
is.whole

Test Whether a Vector or Array Consists of Whole Numbers
shortRversion

Short R Version String
mpl

Simple Matrix Plots
missingCh

Has a Formal Argument been Set or is it Missing?
p.datum

Plot 'Datum' (deutsch!) unten rechts
str_data

Overview on All Datasets in an R Package
posdefify

Find a Close Positive Definite Matrix
printTable2

Add and Print Marginals for 2-way Contingency Tables
p.dnorm

Plot Parametric Density Functions
p.profileTraces

Plot a profile.nls Object With Profile Traces
iterate.lin.recursion

Generate Sequence Iterating a Linear Recursion
potatoes

Fisher's Potato Crop Data
relErr

Relative Error When Appropriate, Absolute Otherwise
p.ts

plot.ts with multi-plots and Auto-Title -- on 1 page
tkdensity

GUI Density Estimation using Tcl/Tk
repChar

Make Simple String from Repeating a Character, e.g. Blank String
tapplySimpl

More simplification in tapply() result
paste.vec

Utility for 'Showing' S vectors
xy.unique.x

Uniqify (X,Y) Values using Weights
p.scales

Conversion between plotting scales: usr, cm, symbol
lseq

Generate Sequences, Equidistant on Log Scale
mat2tex

Produce LaTeX commands to print a matrix
prt.DEBUG

Utility Printing in DEBUG mode
toLatex.numeric

LaTeX or Sweave friendly Formatting of Numbers
nr.sign.chg

Number of Sign Changes in Sequence
p.arrows

Prettified Arrows Plots
pretty10exp

Nice 10 ** k Label Expressions
plotStep

Plot a Step Function
u.datumdecode

Convert “Numeric” Dates
primes

Find all Primes Less Than n
u.log

(Anti)Symmetric Log High-Transform
roundfixS

Round to Integer Keeping the Sum Fixed
u.Datumvonheute

Datum und Uhrzeit (auf deutsch)
p.tachoPlot

Draw Symbol on a Plot
seqXtend

Sequence Covering the Range of X, including X
u.assign0

'Portable' assign / get functions (R / S-plus) for 'Frame 0'
polyn.eval

Evaluate Polynomials
ps.end

Close PostScript or Acrobat Graphics Device opened by 'ps.do' / 'pdf.do'
rrange

Robust Range using Boxplot 'Quartiles'
u.boxplot.x

Utility Returning x-Coordinates of Boxplot
ps.latex

PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
sessionInfoX

Extended Information About the Current R Session
u.date

Return Date[-Time] String in 'European' Format
signi

Rounding to Significant Digits
u.sys

'Portable' System function (R / S-plus)
rotn

Generalized Rot13 Character Translation (Rotation)
rot2

Rotate Planar Points by Angle
sourceAttach

Source and Attach an R source file
unif

Nice Uniform Points in Interval
uniqueL

A Reversable Version of unique()
wrapFormula

Enhance Formula by Wrapping each Term, e.g., by "s(.)"
vcat

Paste Utilities -- Concatenate Strings
xy.grid

Produce Regular Grid Matrix