From 3515c28a2c8e5928b65fa54a657b55bd63d327cf Mon Sep 17 00:00:00 2001 From: Ryan Patrick Kyle Date: Fri, 1 May 2020 12:04:58 -0400 Subject: [PATCH] :pencil2: add value and make runnable --- man/df_to_list.Rd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/df_to_list.Rd b/man/df_to_list.Rd index f39d7e591..3403005cd 100644 --- a/man/df_to_list.Rd +++ b/man/df_to_list.Rd @@ -17,8 +17,11 @@ df_to_list(df=NULL) \item{df}{A \code{data.frame} object, which will be transformed into a list of lists. Each row will become a single named list, in which the elements are named as the columns from which they were extracted.} } +\value{ +a \code{list} object, in which the sublists are named elements of varying type; the names correspond to the column names in the \code{data.frame} specified by \code{df}. +} + \examples{ -\dontrun{ # first, create data frame df <- read.csv(url( 'https://raw.githubusercontent.com/plotly/datasets/master/solar.csv' @@ -38,4 +41,3 @@ dashDataTable( data = df_to_list(df) ) } -}