Nothing
#' Check subset relation on two vectors.
#'
#' @param x [\code{vector}]\cr
#' Source vector.
#' @param y [\code{vector}]\cr
#' Vector of the same mode as \code{x}.
#' @param strict [\code{logical(1)}]\cr
#' Checks for strict/proper subset relation.
#' @return [\code{logical(1)}]
#' \code{TRUE} if each element of \code{x} is also contained in \code{y}, i. e.,
#' if \code{x} is a subset of \code{y} and \code{FALSE} otherwise.
#' @export
isSubset = function(x, y, strict = FALSE) {
assertFlag(strict)
if (length(x) == 0L)
return(TRUE)
res = all(x %in% y)
if (strict)
res = res & !isSubset(y, x)
return(res)
}
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.