#' Select members of vector and produce new selected vector
#'
#' @param vector_to_select_from A vector of any kinf from which we want to select
#' @param vector_specifying_the_selection An integer vector specifying the selection process
#' @return A selected vector of the same type as 'vector_to_select_from'
#' @export
select_elements_from_vector_as_given_by_integer_vector = function(vector_to_select_from,vector_specifying_the_selection){
o = c()
for(i in 1:length(vector_specifying_the_selection)){
o = c(o, vector_to_select_from[vector_specifying_the_selection[i]])
}
return(o)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.