Nothing
#' removes empty rows from `x`
#'
#' @param x [data.frame] a data frame to be cleaned
#' @param id_vars [character] column names, that will be treated as empty
#'
#' @return [data.frame] reduced `x`
util_remove_empty_rows <- function(x, id_vars = character(0)) {
util_expect_scalar(id_vars,
allow_more_than_one = TRUE,
allow_null = TRUE,
check_type = is.character)
util_expect_data_frame(x, id_vars)
x[rowSums(!util_empty(as.matrix(x[, setdiff(colnames(x), id_vars)]))) != 0, ,
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.