%.% {diseasystore} | R Documentation |
Existence aware pick operator
Description
Existence aware pick operator
Usage
env %.% field
Arguments
env |
( |
field |
( |
Value
Error if the field
does not exist in env
, otherwise it returns field
Examples
t <- list(a = 1, b = 2)
t$a # 1
t %.% a # 1
t$c # NULL
try(t %.% c) # Gives error since "c" does not exist in "t"
[Package diseasystore version 0.2.2 Index]