R/parse_estimate.R

Defines functions parse_estimate

parse_estimate <- function(tbl_json) {
  tbl_json$..JSON |>
    purrr::map("estimate") |>
    purrr::map(~ ifelse(is.null(.x), NA_character_, .x)) |>
    as.character() |>
    readr::parse_number(na = c("", "NA", "NR"))
}
ramiromagno/quincunx documentation built on June 2, 2025, 1:23 a.m.