#' @export
MultipleChoice <- function(x,y,tvectors=tvectors,breakdown=TRUE){
cos <- vector(length=length(y))
names(cos) <- y
for(j in 1:length(y)){value <- costring(x,y[j],
tvectors=tvectors,
breakdown=breakdown)
if(is.na(value)){cos[j] <- -2}
if(!is.na(value)){cos[j] <- value}
}
names(cos)[which(cos == max(cos))]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.