dict: Create a key-value dictionary

View source: R/dict.r

dictR Documentation

Create a key-value dictionary

Description

Keys must be valid

Usage

dict(...)

Arguments

...

Either supply a single, unnamed, two-column table or a list of key=value pairs; see examples. If a two-column table, first column has the keys.

Examples

d <- dict(a=5, b=10)
d$b
d <- data.frame(letters[1:10], 1:10) |>
  dict()
d$f

pbreheny/breheny documentation built on April 26, 2024, 10:40 a.m.