Displaying 1 result from an estimated 1 matches for "intermediate1".
Did you mean:
intermediate
2007 Mar 23
1
objects of class "matrix" and mode "list"?
...al2 <- Fold(rbind,vector(),lapply(split(df[,-c(1:2)],f=day),tmp))
> print(c(class(final2),mode(final2)))
[1] "data.frame" "list"
====================================================
However, by my original method, sapply() gives me a matrix with mode, "list"
intermediate1 <- sapply(split(df[,-c(1:2)],f=df$Day),tmp)
> print(c(class(intermediate1),mode(intermediate1)))
[1] "matrix" "list"
Transposing, still a matrix with mode list, not character:
intermediate2 <- t(sapply(split(df[,-c(1:2)],f=day),tmp))
> print(c(class(intermediate2...