Learn R Programming

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

lambda.tools (version 1.0.7)

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

16

Version

1.0.7

License

LGPL-3

Maintainer

Brian Lee Yung Rowe

Last Published

June 9th, 2015

Functions in lambda.tools (1.0.7)

maprange

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

Slice a sequence into two adjacent sub-sequences
foldblock

Successively apply a function to adjacent blocks of a sequence
segment

Segment a sequence into shifted versions of itself
item

Safely get an element from a vector
anynames

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

Check whether data is bad or empty
chomp

Remove the head and tail of a data structure
map

Apply a function over each element of a vector
anytypes

Show the types of a list or data.frame
lambda.tools-package

Tools for functional programming in R
is.scalar

Check if an object is a scalar
samplerange

Sample sub-sequences from a sequence
confine

Confine values to the given bounds
fold

Successively apply a function to the elements of a sequence
quantize

Force values into a set of bins
mapblock

Apply a function over blocks of a vector
onlyif

Conditionally apply a function to an argument
pad

Pad a vector with some default value
range_for

Find contiguous ranges of a given value within a sequence
anylength

Get the generic length of an object
foldrange

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

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

Call a function until it succeeds
use_default

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