## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----encoding----------------------------------------------------------------- library(blosc) r_to_dtype(c(TRUE, FALSE), "|b1") r_to_dtype(1L:4L, "|u1") r_to_dtype(c(1.4, 9.8e-6), " dtype_to_r(" dtype_to_r(" dtype_to_r("|b1", na_value = NA_integer_) ## This can be fixed by specifying `na_value` r_to_dtype(c(TRUE, NA, FALSE, TRUE), "|b1", na_value = -1) |> dtype_to_r("|b1", na_value = -1) ## If the `na_value` is not specified for `dtype_to_r()`, ## it will be taken literally r_to_dtype(c(1, NA, 4, 5), " dtype_to_r(" dtype_to_r("