Nothing
getComposingPrimes <- function (primes, vec.primes)
{
if(is.null(primes))
return(NULL)
a <- strsplit(primes, split = " & ")
b <- strsplit(vec.primes, split = " & ")
d <- numeric(length(vec.primes))
for (i in 1:length(primes)){
d <- d + sapply(b, function (x, y) ifelse(
all(x %in% y) && (length(x) != length(y)),
1, 0), y = a[[i]])
}
if(sum(d) > 0)
out <- vec.primes[d > 0]
else
out <- NULL
out
}
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.