Nothing
omitmissing <- function(data, cols = NULL, mode = c("any", "all")) {
df <- bt_as_data_frame(data)
cols <- bt_resolve_cols(df, cols, allow_null = TRUE)
mode <- match.arg(mode)
if (length(cols) == 0L) {
return(bt_as_data_table(df))
}
miss <- do.call(cbind, lapply(df[cols], bt_is_blank))
if (is.null(dim(miss))) {
miss <- matrix(miss, ncol = 1L)
}
keep <- switch(
mode,
any = rowSums(miss) == 0L,
all = rowSums(miss) < ncol(miss)
)
bt_as_data_table(df[keep, , drop = FALSE])
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.