0

converting list to data frame with specific column names in R

enter image description here

The 'dataframe' I want is as follows.

enter image description here

r2evans
  • 141,215
  • 6
  • 77
  • 149
  • Try with `do.call(cbind, lst1)` or `do.call(rbind, lst1)` – akrun Jun 21 '19 at 01:41
  • 1
    Please do not post an image of code/data/errors: it cannot be copied or searched (SEO), it breaks screen-readers, and it may not fit well on some mobile devices. Ref: https://meta.stackoverflow.com/a/285557/3358272 (and https://xkcd.com/2116/). It might help to make this question *reproducible*. This includes sample code (including listing non-base R packages), sample *unambiguous* data (e.g., `dput(head(x))` or `data.frame(x=...,y=...)`), and expected output. Refs: https://stackoverflow.com/questions/5963269, https://stackoverflow.com/help/mcve, and https://stackoverflow.com/tags/r/info. – r2evans Jun 21 '19 at 02:04
  • you can also use `dplyr::bind_rows` – cephalopod Jun 21 '19 at 02:06

1 Answers1

0

Try this:

df.mylist = as.data.frame(mylist)
names(df.mylist) = c('Time', 'Z1', 'Z2', ... , 'Z10')
df.mylist