| safe_get_type | R Documentation | 
Safely get a variable of specific type.
safe_get_type(x, type, env = parent.frame(), inherits = FALSE, add = TRUE)
| x | Quoted name of the variable. | 
| type | The data type of the variable. | 
| env | The environment in which to search. | 
| inherits | Whether to search in the parent environments. | 
| add | Whether or not to add feedback. | 
First checks whether the variable exists in the environment. If it does, then checks whether it is of the appropriate type.
A value of the desired type if found, or NULL if not found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.