clean_data <- function(x) {
if (!is.data.frame(x)) {
stop("`x` must be a data frame")
}
x[complete.cases(x), , drop = FALSE]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.