This dataframe code :
f <- function (l) {
l
}
data.frame(lapply(letters[1:2] , f))
which renders :
I'm attempting to transpose the rows to cols so a,b
appear as :
X.a. a
X.b. b
I tried :
f <- function (l) {
l
}
data.frame(t(lapply(letters[1:2] , f)))
But this renders :
Can I use transpose function t()
to change how data frame appears ?