Description
Compute Statistics Helper Functions.
Description
A small package containing helper utilities for creating functions for computing statistics.
README.md
Do Stats R Package
Introduction
The dostats R package is a compilation of helper utilities for computing statistics and operating on R as a language. It is particularly helpful with packages like plyr, but is useful anytime that simple functions have to be defined.
Details
There are at present four functions of note.
dostatscreates a function that returns a single linedata.framefrom a list of functions.composecreate a a functional composition of an arbitrary number of functions nesting each call withing the other.%.%is a operator alias for composition of two functions.
In other wordsf%.%gis equivalent tofunction(x)f(g(x)). There are helper functions for compose that assist in creating functionswargsspecifies new default arguments.onargspecifies the argument that should be first in the formals list.
seq_consecutivewill create a vector form a source vector than increments every time the source vector changes..Tis a helper function for creating character vectors without having to insert quotes.