Learn R Programming

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

rlist (version 0.4.2.3)

A Toolbox for Non-Tabular Data Manipulation

Description

Provides a set of functions for data manipulation with list objects, including mapping, filtering, grouping, sorting, updating, searching, and other useful functions. Most functions are designed to be pipeline friendly so that data processing with lists can be chained.

Copy Link

Version

Install

install.packages('rlist')

Monthly Downloads

155,578

Version

0.4.2.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kun Ren

Last Published

July 9th, 2015

Functions in rlist (0.4.2.3)

list.unserialize

Unserialize a file
list.skip

Skip a number of elements
List

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

Map multiple lists with an expression
list.any

Examine if a condition is true for at least one list element
list.serialize

Serialize a list
list.extract

Extract an element from a list or vector
list.cbind

Bind all list elements by column
list.table

Generate a table for a list by expression
list.mapv

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

Filter a list or vector by a series of conditions
list.do

Call a function with a list of arguments
list.merge

Merge a number of named lists in sequential order
list.apply

Apply a function to each list element (lapply)
list.reverse

Reverse a list
tryGet

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

Select by name or expression for each member of a list
list.findi

Find the indices of a number of elements in a list or vector satisfying a given condition
list.exclude

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

Flatten a nested list to a one-level list
list.unzip

Transform a list of elements with similar structure into a list of decoupled fields
list.take

Take a number of elements
list.rbind

Bind all list elements by row
list.skipWhile

Keep skipping elements while a condition holds
list.append

Append elements to a list
list.cases

Get all unique cases of a list field by expression
list.count

Count the number of elements that satisfy given condition
list.sample

Sample a list or vector
list.last

Find the last element that meets a condition
list.clean

Clean a list by a function
list.subset

Subset a list
tryEval

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

Find a specific number of elements in a list or vector satisfying a given condition
list.map

Map each element in a list or vector by an expression.
list.search

Search a list recusively by an expression
list.group

Divide list/vector elements into exclusive groups
list.parse

Convert an object to list with identical structure
list.join

Join two lists by single or multiple keys
list.save

Save a list to a file
list.prepend

Prepend elements to a list
list.ungroup

Ungroup a list by taking out second-level elements
list.remove

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

Get or set the names of a list by expression
list.sort

Sort a list by given expressions
list.stack

Stack all list elements to tabular data
list.order

Give the order of each list element by expression
rlist-package

The rlist package
list.which

Give the indices of list elements satisfying a given condition
list.all

Examine if a condition is true for all elements of a list
list.load

Load a list from file
list.zip

Combine multiple lists element-wisely.
list.first

Find the first element that meets a condition
list.is

Return a logical vector that indicates if each member of a list satisfies a given condition
list.match

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

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

Subset a list by a logical condition
list.update

Update a list by appending or modifying its elements.
nyweather

New York hourly weather data
list.class

Classify list elments into unique but non-exclusive cases
list.iter

Iterate a list by evaluating an expression on each list element
list.takeWhile

Keep taking elements while a condition holds
list.insert

Insert a series of lists at the given index
list.expand

Create a list from all combinations of factors