R/make_list.R

Defines functions make_list

Documented in make_list

#' Create Single Value List
#'
#' This function will create a list containing one value that is.
#' specified by the user
#' @param x - the value to fill the list
#' @param length - the number of elements to include in list
#' @keywords list
#' @export
#' @examples
#' make_list()
make_list = function(x,length)
{
  list = numeric(length)
  for(i in 1:length)
  {
    list[i] = x
  }
  return(list)
}
skylernorgaard1/math365 documentation built on May 28, 2017, 12:54 a.m.