View source: R/small-helpers.R
It can be cumbersome to deal with all of the $
in inane Python code.
This function lets you specify the object (a Python dict
or a Python object
with a get()
method) and the key and this will return the value or
NA_character_
if there was no key..
1 | get_chr(obj, key)
|
obj |
Python |
key |
the key to retrive the value for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.