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)
}
InsightRX/PKPDsim documentation built on April 25, 2024, 2:10 a.m.