Tools for Modeling Data with Functional Programming


[Up] [Top]

Documentation for package ‘lambda.tools’ version 1.0.9

Help Pages

lambda.tools-package Tools for functional programming in R
anylength Get the generic length of an object
anynames Get the names of a data structure. This attempts to create some polymorphism around lists, vectors, and data.frames
anynames<- Get the names of a data structure. This attempts to create some polymorphism around lists, vectors, and data.frames
anytypes Show the types of a list or data.frame
chomp Remove the head and tail of a data structure
confine Confine values to the given bounds
fold Successively apply a function to the elements of a sequence
foldblock Successively apply a function to adjacent blocks of a sequence
foldrange Successively apply a function to a rolling range of a sequence
is.bad Check whether data is bad or empty
is.empty Check whether data is bad or empty
is.scalar Check if an object is a scalar
item Safely get an element from a vector
lambda.tools Tools for functional programming in R
map Apply a function over each element of a vector
mapblock Apply a function over blocks of a vector
maprange Apply a function over a rolling range of a data structure
ntry Call a function until it succeeds
onlyif Conditionally apply a function to an argument
pad Pad a vector with some default value
partition Partition a sequence into adjacent windows and apply a metric function to each window
quantize Force values into a set of bins
range_for Find contiguous ranges of a given value within a sequence
samplerange Sample sub-sequences from a sequence
segment Segment a sequence into shifted versions of itself
slice Slice a sequence into two adjacent sub-sequences
use_default Apply a default value whenever a variable is not well-formed