[R] transposing data.frames

Christoph Heibl christoph.heibl at gmx.net
Mon Jun 25 15:13:02 CEST 2007


Hello,
This must be simple...
Thanks a lot
- Christoph

# Imagine you have a list, e.g:

K <- list(1:10, 2:11, 9:18)
K

# Transforming to dataframe...

KK <- as.data.frame(K)

# ... one obtaines the list elements as column.

KK

# But I need the list elements as rows
# How can I achieve this? Is there a simple way to transpose  
data.frames?



More information about the R-help mailing list