Learn R Programming

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

lambda.tools (version 1.0.3)

Tools for modeling data with functional programming

Description

Provides tools that manipulate and transform data using methods and techniques consistent with functional programming. The idea is that through the use of these tools, a program can be reasoned about insomuch that the implementation can be proven to be equivalent to the mathematical model.

Copy Link

Version

Install

install.packages('lambda.tools')

Monthly Downloads

15

Version

1.0.3

License

LGPL-3

Maintainer

Brian Lee Yung Rowe

Last Published

February 8th, 2014

Functions in lambda.tools (1.0.3)

samplerange

Sample sub-sequences from a sequence
item

Safely get an element from a vector
partition

Partition a sequence into adjacent windows and apply a metric function to each window
confine

Confine values to the given bounds
is.empty

Check whether data is bad or empty
maprange

Apply a function over a rolling range of a data structure
chomp

Remove the head and tail of a data structure
anytypes

Show the types of a list or data.frame
pad

Pad a vector with some default value
use_default

Apply a default value whenever a variable is not well-formed
anylength

Get the generic length of an object
foldrange

Successively apply a function to a rolling range of a sequence
slice

Slice a sequence into two adjacent sub-sequences
mapblock

Apply a function over blocks of a vector
segment

Segment a sequence into shifted versions of itself
range.for

Find contiguous ranges of a given value within a sequence
map

Apply a function over each element of a vector
is.scalar

Check if an object is a scalar
quantize

Force values into a set of bins
foldblock

Successively apply a function to adjacent blocks of a sequence
lambda.tools-package

Tools for functional programming in R
anynames

Get the names of a data structure. This attempts to create some polymorphism around lists, vectors, and data.frames
fold

Successively apply a function to the elements of a sequence
onlyif

Conditionally apply a function to an argument