Open jtr13 opened 5 years ago
add an example with .null = NA
see: https://github.com/jennybc/analyze-github-stuff-with-r
and check_and_assign function here: https://github.com/socdataR/wonderapi/blob/master/R/make_codebook_vignette.R
check_and_assign
which may be possible to eliminate
as_function()
.null
map_int(x, 1, .null = NA)
add an example with .null = NA
see: https://github.com/jennybc/analyze-github-stuff-with-r
and
check_and_assign
function here: https://github.com/socdataR/wonderapi/blob/master/R/make_codebook_vignette.Rwhich may be possible to eliminate
as_function()
gains a.null
argument that for character and numeric values allows you to specify what to return for null/absent elements (#110). This can be used with any map function, e.g.map_int(x, 1, .null = NA)
https://github.com/tidyverse/purrr/commit/da6d0334dc522c6a5dd6b2d55000dc086b22c5fd