Nothing
#' Find the Position of Drop Out in a Vector
#'
#' Check consecutive NAs from backend of a vector.
#'
#' @param v a vector
#' @param clnms specify the parts that actually hold questions by character names.
#' @export
find_drop_out <- function(v,clnms){
# length of the vector of question labels
l <- length(clnms)
# create backwards sequence
full_seq <- l:1
drop_out_pos <- min(which(!full_seq %in% v))
l-(drop_out_pos-1)
}
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.