search for: intermediate2

Displaying 1 result from an estimated 1 matches for "intermediate2".

Did you mean: intermediate
2007 Mar 23
1
objects of class "matrix" and mode "list"?
...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),mode(intermediate2))) [1] "matrix" "list" Unclassing gives me the same thing... > print(c(class(unclass(intermediate2)),mode(unclass(intermediate2)))) [1] "matrix" "list"...