Is object a symbol?

is_symbol(x, name = NULL)

Arguments

x

An object to test.

name

An optional name that the symbol should match.