Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

list_functions

Higher-order functions for dealing with lists


Description

These functions were inspired by underscore.js.

Usage

pluck(key)

pluck_apply(key, xss)

pick(keys)

pick_apply(keys, xss)

Arguments

key

the name of a value in a list

xss

a list of lists

keys

a character vector of names in a list

Details

  • pluck: Pluck a named value from a list

  • pick: Simplify a list by picking out whitelisted names

The simple versions of pluck and pick are curried functions, meaning that they return a function which can be applied to a list. See the syntax in the usage section.

Value

pluck returns an unnamed value and pluck_apply returns a list of unnamed values. pick returns a simplified version of the original list. pick_apply returns a list of simplified lists.


rprime

Functions for Working with 'Eprime' Text Files

v0.1.2
GPL-2
Authors
Tristan Mahr [aut, cre] (<https://orcid.org/0000-0002-8890-5116>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.