Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Compute statistics helper functions

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 R
Octocat-spinner-32 inst
Octocat-spinner-32 man
Octocat-spinner-32 tests
Octocat-spinner-32 .Rbuildignore
Octocat-spinner-32 .gitignore
Octocat-spinner-32 DESCRIPTION
Octocat-spinner-32 NEWS
Octocat-spinner-32 README.md
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.

  • dostats creates a function that returns a single line data.frame from a list of functions.
  • compose createa a functional composition of an arbitrary number of functions nesting each call withing the other. %.% is a opperator alias for composition of two functions.
    In other words f%.%g is equivalant to function(x)f(g(x)). There are helper functions for compose that assist in creating functions
    • wargs specifies new default arguments.
    • onarg specifies the argument that should be first in the formals list.
  • seq_consecutive will create a vector form a source vector than incriments every time the source vector changes.
  • .T is a helper function for creating character vectors without having to insert quotes.
Something went wrong with that request. Please try again.