How to transpose a list of data frame in R?

I have a list of data frames. What to transpose the list I do not know how to do?

What do you call transpose? If you want to do a matrix-style transpositiion of each data frame separately, you just need:

output <- lapply(input, t)

note however that the data frames become matrices, all columns have the same type.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.