Nothing
#' @export
is.flip_pair <- function(pair){
if(length(pair) != 2){return(FALSE)}
any(apply(permutations::edge_facets,1,function(x){all(sort(x) == pair)}))
}
#' @export
is.flip <- function(p){
p <- as.cycle(p)
out <- rep(FALSE,length(p))
for(i in seq_along(p)){
out[i] <- (
all(shape(p[i]) == 2) &&
all(sapply(unclass(p[i])[[1]], is.flip_pair, simplify = TRUE))
)
}
return(out)
}
#' @export
is.superflip <- function(p){is.flip(p) & (sapply(shape(p), length) == 30) }
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.