is_symbol | R Documentation |
This function checks whether the x
argument is an rstatic Symbol. The
optional second argument can be used to check for a specific name.
is_symbol(x, name = NA_character_, ssa = TRUE)
x |
The object to check. |
name |
(character) A name to compare against, or |
A logical value: is x
a Symbol, and does it match the name
argument?
x = quote_ast(hi)
is_symbol(x) # TRUE
is_symbol(x, "hi") # TRUE
is_symbol(x, "hello") # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.