# test whether a unit object has unit "null"
is_null_unit <- function(u) {
if (is.unit(u)) {
identical(unit_type(u), "null")
} else {
FALSE
}
}
# test whether a unit object has unit "native"
is_native_unit <- function(u) {
if (is.unit(u)) {
identical(unit_type(u), "native")
} else {
FALSE
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.