format_numbers <- function(x) {
ans <- x %>%
str_replace_all(pattern = ',', replacement = '') %>%
str_replace_all(pattern = '^\\(', replacement = '-') %>%
str_replace_all(pattern = '\\)$', replacement = '')
suppressWarnings(as.numeric(ans))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.