Learn R Programming

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

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.

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

14,507

Version

1.1-1

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

June 8th, 2017

Functions in sfsmisc (1.1-1)

Duplicated

Counting-Generalization of duplicated()
KSd

Approximate Critical Values for Kolmogorov-Smirnov's D
D2ss

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

Deprecated 'sfsmisc' Functions
AsciiToInt

Character to and from Integer Codes Conversion
D1D2

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

Axis Ticks Expressions in Nice 10 ** k Form
cairoSwd

Cairo PDF Graphics Device useful for Sweave
QUnif

Quasi Randum Numbers via Halton Sequences
TA.plot

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

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

Kumulative Verteilung Aufzeichnen
hatMat

Hat Matrix of a Smoother
histBxp

Plot a Histogram and a Boxplot
digitsBase

Digit/Bit Representation of Integers in any Base
eaxis

Extended / Engineering Axis for Graphics
integrate.xy

Cheap Numerical Integration through Data points.
inv.seq

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

Simple Matrix Plots
mult.fig

Plot Setup for MULTiple FIGures, incl. Main Title
p.dnorm

Plot Parametric Density Functions
ecdf.ksCI

Plot Empirical Distribution Function With 95% Confidence Curves
ellipsePoints

Compute Radially Equispaced Points on Ellipse
empty.dimnames

Empty Dimnames of an Array
errbar

Scatter Plot with Error Bars
diagDA

Diagonal Discriminant Analysis
diagX

The “Other” Diagonal Matrix
is.whole

Test Whether a Vector or Array Consists of Whole Numbers
iterate.lin.recursion

Generate Sequence Iterating a Linear Recursion
n.code

Convert "Round" Integers to Short Strings and Back
n.plot

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

Nice 10 ** k Label Expressions
primes

Find all Primes Less Than n
f.robftest

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

Prime Factorization of Integers
last

Get Last Elements of a Vector
linesHyperb.lm

Plot Confidence or Prediction Hyperbolas around a Regression Line
p.res.2x

Stahel's Residual Plot against 2 X's
p.scales

Conversion between plotting scales: usr, cm, symbol
rot2

Rotate Planar Points by Angle
p.hboxp

Add a Horizontal Boxplot to the Current Plot
plotStep

Plot a Step Function
polyn.eval

Evaluate Polynomials
tkdensity

GUI Density Estimation using Tcl/Tk
loessDemo

Graphical Interactive Demo of loess()
lseq

Generate Sequences, Equidistant on Log Scale
p.arrows

Prettified Arrows Plots
p.datum

Plot 'Datum' (deutsch!) unten rechts
repChar

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

Generalized Rot13 Character Translation (Rotation)
tapplySimpl

More simplification in tapply() result
roundfixS

Round to Integer Keeping the Sum Fixed
signi

Rounding to Significant Digits
sourceAttach

Source and Attach an R source file
p.profileTraces

Plot a profile.nls Object With Profile Traces
p.res.2fact

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

Draw Symbol on a Plot
str_data

Overview on All Datasets in an R Package
capture.and.write

Capture output and Write / Print First and Last Parts
col01scale

Matrix Scaling Utilities
mat2tex

Produce LaTeX commands to print a matrix
missingCh

Has a Formal Argument been Set or is it Missing?
u.boxplot.x

Utility Returning x-Coordinates of Boxplot
u.date

Return Date[-Time] String in 'European' Format
u.Datumvonheute

Datum und Uhrzeit (auf deutsch)
u.assign0

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

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

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

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

Extended Information About the Current R Session
nearcor

Find the Nearest Proper Correlation Matrix
nr.sign.chg

Number of Sign Changes in Sequence
posdefify

Find a Close Positive Definite Matrix
potatoes

Fisher's Potato Crop Data
toLatex.numeric

LaTeX or Sweave friendly Formatting of Numbers
wrapFormula

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

Produce regular grid matrix.
sfsmisc-defunct

Defunct Functions in Package sfsmisc
u.sys

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

Nice Uniform Points in Interval
quadrant

Give the Quadrant Number of Planar Points
read.org.table

Read.table for an Emacs Org Table
u.datumdecode

Convert “Numeric” Dates
u.log

(Anti)Symmetric Log High-Transform
paste.vec

Utility for 'Showing' S vectors
plotDS

Plot Data and Smoother / Fitted Values
printTable2

Add and Print Marginals for 2-way Contingency Tables
prt.DEBUG

Utility Printing in DEBUG mode
rrange

Robust Range using Boxplot 'Quartiles'
seqXtend

Sequence Covering the Range of X, including X
uniqueL

A Reversable Version of unique()
xy.unique.x

Uniqify (X,Y) Values using Weights
Sys.cpuinfo

Provide Information about the Linux Hardware (CPU, Memory, etc)
Sys.ps

Return Process Status (Unix 'ps') Information
vcat

Paste Utilities -- Concatenate Strings