[R] initiate elements in a dataframe with lists

Juan Telleria Ruiz de Aguirre jte||er|@@rproject @end|ng |rom gm@||@com
Wed Jul 25 11:58:23 CEST 2018


By the way, this also works:

dfl <- data.frame(x = 1:3, y = I(list(1:2, 1:3, 1:4)))

As indicated in "Advanced R" book:
http://adv-r.had.co.nz/Data-structures.html#data-frames




More information about the R-help mailing list