Learn R Programming

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

rlist (version 0.3-2)

A set of tools for working with list objects

Description

A set of tools for working with lists as dataset, including filtering, mapping, grouping, sorting, updating, searching, and many other functions. It recommends functional programming and collection pipeline in list operations.

Copy Link

Version

Install

install.packages('rlist')

Monthly Downloads

155,578

Version

0.3-2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kun Ren

Last Published

August 22nd, 2014

Functions in rlist (0.3-2)

list.findi

Find the indices of a number of members in a list that meet given condition
list.reverse

Reverse a list
list.all

Get whether all list members satisfy the given condition
list.subset

Subset a list
list.apply

Apply a function to each list member (lapply)
tryEval

Try to evaluate an expression and return a default value if an error occurs or otherwise return its value.
list.do

Call a function with a list of arguments as provided
List

Create a List environment that wraps given data and most list functions are defined for chainable operations.
list.class

Classify list members into unique cases evaluated by given expression.
list.extract

Extract a member from a list
list.filter

Filter a list by a condition.
list.which

Return a integer vector of the indices of list members that satisfy given 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.prepend

Prepend a list
list.any

Get whether any list member satisfies the given condition
list.append

Append a list
list.common

Get all common cases by expression for a list
list.update

Update a list by modifying its elements.
list.table

Generate a table for a list by expression
list.select

Select by name or expression for each member of a list
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.merge

Merge a series of lists
list.clean

Clean a list by a function
list.rbind

Bind all list members by row
list.parse

Parse an object to be a list with identical structure
list.ungroup

Ungroup a list
list.map

Map each member of a list by an expression.
list.stack

Stack all list members to construct a data.frame
list.iter

Iterate a list by evaluating an expression on each list member.
list.remove

Remove members from a list by index or name
list.save

Save a list to a file
list.count

Count the number of members that meet given condition
list.sample

Sample a list
tryGet

Try to get the value of a symbol if exists or return a default value
list.find

Find a specific number of members in a list that meeting given condition
list.join

Join two lists by single or multiple keys
list.match

Select members of a list that match given regex pattern
list.mapv

Map each member of a list by an expression to a vector.
list.skip

Skip a number of members in a list
equal

Compare two values and test whether they are equal at certain degree
list.takeWhile

Take out members until the given condition is broken
list.exclude

Exclude members of a list that meet given condition.
list.maps

Map multiple lists with an expression
subset.list

Return subsets of a list which meet conditions.
list.skipWhile

Skip members until the given condition is broken
list.search

Search a list recusively by an expression
list.load

Load a list from file
list.cbind

Bind all list members by column
list.cases

Get all unique cases by expression for a list
list.order

Return the order of each member in a list by expression
rlist

The rlist package
list.take

Take a number of members from a list
list.sort

Sort a list by given expressions in order
list.zip

Combine multiple lists element-wisely.
list.serialize

Serialize a list
list.unserialize

Unserialize a file
summary.list

Summarize a list.