Nothing
#' get.numeric
#'
#' Takes in a data.frame or imputationList, removes non-numeric columns, and returns the object.
#' @param x a data.frame or 'imputationList'
#' @return Returns the original object with all non-numeric columns removed.
#' @export get.numeric
#' @importFrom mitools imputationList
get.numeric = function(x) {
if (!any(c("imputationList", "amelia") %in% class(x))) {
cols = unlist(lapply(x, is.numeric))
return(x[, cols])
} else{
if (!"imputationList" %in% class(x)) {
x = imputationList(x$imputations)
}
imps = lapply(x$imputations, function(y) {
cols = unlist(lapply(y, is.numeric))
return(y[, cols])
})
return(imputationList(imps))
}
}
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.