Learn R Programming

lambda.tools (version 1.0.9)

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

51

Version

1.0.9

License

LGPL-3

Last Published

May 11th, 2016

Functions in lambda.tools (1.0.9)

chomp

Remove the head and tail of a data structure
confine

Confine values to the given bounds
anylength

Get the generic length of an object
partition

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

Pad a vector with some default value
segment

Segment a sequence into shifted versions of itself
is.scalar

Check if an object is a scalar
mapblock

Apply a function over blocks of a vector
slice

Slice a sequence into two adjacent sub-sequences
samplerange

Sample sub-sequences from a sequence
quantize

Force values into a set of bins
foldblock

Successively apply a function to adjacent blocks of a sequence
anytypes

Show the types of a list or data.frame
is.empty

Check whether data is bad or empty
anynames

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

Call a function until it succeeds
onlyif

Conditionally apply a function to an argument
fold

Successively apply a function to the elements of a sequence
lambda.tools-package

Tools for functional programming in R
range_for

Find contiguous ranges of a given value within a sequence
foldrange

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

Apply a function over each element of a vector
use_default

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

Safely get an element from a vector
maprange

Apply a function over a rolling range of a data structure