%.% | R Documentation |
Existence aware pick operator
env %.% field
env |
( |
field |
( |
Error if the field
does not exist in env
, otherwise it returns field
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.