A Toolbox for Non-tabular Data Manipulation


[Up] [Top]

Documentation for package ‘rlist’ version 0.4

Help Pages

rlist-package The rlist package
List Create a 'List environment' that wraps given 'data' and most list functions are defined for chainable operations.
list.all Examine if a condition is true for all elements of a list
list.any Examine if a condition is true for at least one list element
list.append Append a list
list.apply Apply a function to each list element ('lapply')
list.cases Get all unique cases by expression for a list
list.cbind Bind all list elements by column
list.class Classify list elments into unique cases evaluated by given expression.
list.clean Clean a list by a function
list.common Get all common cases by expression for a list
list.count Count the number of members that meet given condition
list.do Call a function with a list of arguments as provided
list.exclude Exclude members of a list that meet given condition.
list.extract Extract a member from a list
list.filter Filter a list by a condition.
list.find Find a specific number of members in a list that meeting given condition
list.findi Find the indices of a number of members in a list that meet given condition
list.first Find the first element that meets a condition
list.flatten Flatten a list to only one level
list.group Group a list by the value of an expression evaluated for each member.
list.if Return a logical vector that indicates if each member of a list satisfies a given condition
list.insert Insert a series of lists at the given index
list.is Return a logical vector that indicates if each member of a list satisfies a given condition
list.iter Iterate a list by evaluating an expression on each list element
list.join Join two lists by single or multiple keys
list.last Find the last element that meets a condition
list.load Load a list from file
list.map Map each element in a list or vector by an expression.
list.maps Map multiple lists with an expression
list.mapv Map each member of a list by an expression to a vector.
list.match Select members of a list that match given regex pattern
list.merge Merge a series of named lists
list.names Get or set the names of a list by expression
list.order Return the order of each member in a list by expression
list.parse Parse an object to be a list with identical structure
list.parse.character Parse an object to be a list with identical structure
list.parse.data.frame Parse an object to be a list with identical structure
list.parse.default Parse an object to be a list with identical structure
list.parse.matrix Parse an object to be a list with identical structure
list.prepend Prepend a list
list.rbind Bind all list elements by row
list.remove Remove members from a list by index or name
list.reverse Reverse a list
list.sample Sample a list
list.save Save a list to a file
list.search Search a list recusively by an expression
list.select Select by name or expression for each member of a list
list.serialize Serialize a list
list.skip Skip a number of members in a list
list.skipWhile Skip members until the given condition is broken
list.sort Sort a list by given expressions in order
list.stack Stack all list elements to tabular data
list.subset Subset a list
list.table Generate a table for a list by expression
list.take Take a number of members from a list
list.takeWhile Take out members until the given condition is broken
list.ungroup Ungroup a list
list.unserialize Unserialize a file
list.unzip Transform a list of elements with similar structure into a list of decoupled fields
list.update Update a list by adding or modifying its elements.
list.which Return a integer vector of the indices of list members that satisfy given condition
list.zip Combine multiple lists element-wisely.
nyweather New York hourly weather data
subset.list Return subsets of a list which meet conditions.
tryEval Try to evaluate an expression and return a default value if an error occurs or otherwise return its value.
tryGet Try to get the value of a symbol if exists or return a default value