R/list_to_vec.R

Defines functions list_to_vec

Documented in list_to_vec

#' This function converts a list to a vector.
#' @import stringr
#' @import dplyr
#' @import magrittr
#' @param l, the list
#' @return vector with the elements of the list
#' @export

list_to_vec <- function(l) {
  v <- c()
  for(i in 1:length(l)) {
    v <- append(v, l[[i]])
  }
  return(v)
}
kingsuching/Frost2021Package documentation built on March 19, 2022, 11:51 p.m.