I have the following data frame that looks like this (3 columns as list).
A tibble: 14 x 4
clinic_name drop_
Is there any specific reason why you would like to save the columns as a list ? Alternatively, you can use unnest
and save it in csv. example below
library(tidyverse)
df_list<-data_frame(abc = letters[1:3], lst = list(1:3, 1:3, 1:3))
df_list %>% unnest() %>% write.csv("list.csv")
further, when you read the file you can nest
it back
df <- read.csv("list.csv")[ ,2:3]
df %>% nest(lst)