Nothing
#' @title Auxiliar function to remove duplicated or zero variance regressors
#'
#' @description Auxiliar function to remove duplicated regressors.
#'
#' @importFrom stats var
#'
#' @keywords internal
#'
fun.filter <- function(X){
tol <- sqrt(.Machine$double.eps)
dup <- !duplicated(X, MARGIN = 2)
X <- X[, dup, drop = FALSE]
.var <- apply(X, 2, var)
.var <- .var <= tol
X <- X[, !.var, drop = FALSE]
return(X)
}
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.