R/table_to_list.R

Defines functions table_to_list

Documented in table_to_list

#' Convert a table to a list
#'
#' @param table data.frame
#' @export
#' @return List containing original table contents
table_to_list <- function(table) {
  lapply(split(table, seq_along(table[,1])), as.list)
}

Try the PKPDsim package in your browser

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

PKPDsim documentation built on March 7, 2023, 5:40 p.m.