rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

Update the elements

Open maelle opened this issue 8 years ago • 3 comments

I couldn't find where the elements table was created for the package. A few elements got new names and symbols: https://iupac.org/iupac-announces-the-names-of-the-elements-113-115-117-and-118/ 😄

maelle avatar Feb 02 '17 20:02 maelle

Oh cool! I'll update accordingly when I have a chance.

hafen avatar Feb 17 '17 08:02 hafen

Great! I know this https://github.com/andrejewski/periodic-table is up to date since @dacornu's PR, maybe an useful source?

maelle avatar Feb 17 '17 08:02 maelle

Note to self: use this code (from here) to update the data:

elements <- filter(elements, !atomic.number %in% c(113, 114, 115, 116, 117))

renamed_elements <- data.frame(
  atomic.number = c(113, 114, 115, 116, 117, 118),
  symbol = c("Nh", "Fl", "Mc", "Lv", "Ts", "Og"),
  name = c("Nihonium", "Flerovium", "Moscovium", "Livermorium", "Tennessine", "Oganesson"),
  atomic.mass = c("[284]", "[289]", "[288]", "[293]", "[294]", "[294]"),
  group = c("13", "14", "15", "16", "17", "18"),
  period = rep("7", 6))

elements <- bind_rows(elements, renamed_elements)

hafen avatar Jun 16 '17 20:06 hafen