Open jtr13 opened 4 years ago
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
as_function()
.null
map_int(x, 1, .null = NA)
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