Nothing
# all.integers: robustly tests whether all elements of a vector are integers
# Date: March 31, 2026
all.integers <- function(x) {
for (i in 1:length(x)) {
if (is.na(x[i]) | is.list(x[i]) | length(x[i]) > 1 | !is.numeric(x[i])) {
return(FALSE)
}
if (x[i]%%1!=0) {
return(FALSE)
}
}
return(TRUE)
}
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.