Load the Gist
library(devtools)
source_gist("cca995ec1709c0d4735d")
Some use cases
anomaly2 <- function (x, n = if(is.null(sig)) 10 else NULL, method = "hdr", robust = TRUE, plot = TRUE, | |
labels = TRUE, col, sig = NULL) { | |
nc <- nrow(x) | |
if(!is.null(n)){ | |
if (nc < n) { | |
stop("Your n is too large.") | |
} | |
} |