#'
#' @title Coerce objects into a list
#' @description this function is similar to R function 'list'
#' @details Unlike the R function 'list' it takes also a vector of characters,
#' the names of the elements in the output list.
#' @param input a list of objects to coerce into a list
#' @param eltnames a character list, the names of the elements in the list.
#' @return a list
#' @author Gaye, A.
#' @export
#'
listDS <-function (input=NULL, eltnames=NULL){
mylist <- input
names(mylist) <- unlist(eltnames)
return(mylist)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.