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"))
}

Try the quincunx package in your browser

Any scripts or data that you put into this service are public.

quincunx documentation built on April 4, 2025, 2:09 a.m.