get_chr: Retrieve a value from a Python 'dict' as a character

Description Usage Arguments

View source: R/small-helpers.R

Description

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..

Usage

1
get_chr(obj, key)

Arguments

obj

Python dict or object with a get() method

key

the key to retrive the value for


hrbrmstr/sanipy documentation built on May 20, 2019, 11:58 a.m.