R/toList.R

Defines functions toList

#' Function to transform a dataframe object in a list
#'
#' @param th an object of class \code{data.frame}
#' @return a list containing the vectors of the data frame \code{th}.
#' @keywords internal
#' @noRd
toList <- function(th) structure(as.list(th), names= names(th))

Try the econet package in your browser

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

econet documentation built on April 28, 2022, 1:07 a.m.