#' Converter valores disponiveis no historico de lances para formato numerico
#'
#' @param string character string com o valor do lance, tal como disponivel nas atas
#'
#' @return numeric
#' @export
limpar_valores <- function(string) {
str_extract(string,
pattern = '(\\d{1,3}\\.)*\\d{1,3},\\d.*') %>%
str_remove_all(' |\\.') %>%
str_replace(pattern = ',(?=\\d+$)', replacement = '\\.') %>%
as.numeric()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.