R/lappend.R

Defines functions .lappend

#' @title lappend
#' @author Thi-Thu-Hong Phan, Andre Bigand, Emilie Poisson-Caillault
#' @description Appending elements (a vector, a list) to a list.
#' @param lst  a list 
#' @param obj a list or a vector to append 
#' @return Return a list  a new vector of same size with imputed values


.lappend <- function(lst, obj) {
    lst[[length(lst)+1]] <- obj
    return(lst)
}

Try the FSMUMI package in your browser

Any scripts or data that you put into this service are public.

FSMUMI documentation built on May 2, 2019, 12:40 p.m.