getOptionalValue | R Documentation |
Use this function for optional fields where no warning should be generated if missing.
getOptionalValue(data, field_name, default_value = NA)
data |
The data structure to extract from |
field_name |
The name of the field to extract |
default_value |
Value to return if the field doesn't exist |
The field value if it exists, otherwise the default_value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.