This function checks whether a given symbol is a valid chemical element. The function uses a list of known chemical elements up to 2022. It returns TRUE if the symbol is valid, otherwise returns FALSE.

check_chemical_element(element)

Arguments

element

A character string representing the chemical element symbol to be validated.

Value

A logical value: TRUE if the element symbol is valid, FALSE otherwise.

Examples

check_chemical_element("Fe") # TRUE
#> [1] TRUE
check_chemical_element("Fz") # FALSE
#> [1] FALSE