r - Adding a data.frame to an existing list containing vectors -
i have list contains vectors. example "mylist" looks this:
mylist $mean [1] 2 3 4 5 6 7 8 9 0 10 $sd [1] 3 5 3
i want add new data.frame "data" existing list such "mylist" has 3 elements: mylist$mean
, mylist$sd
, mylist$data
.
how can done?
try
mylist$data <- df
where df
data frame
Comments
Post a Comment