Skip to contents

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
#> $b
#> [1] 10
#> 
d <- data.frame(letters[1:10], 1:10) |>
  dict()
d$f
#> [1] 6