Displaying 1 result from an estimated 1 matches for "rdm1".
Did you mean:
dm1
2012 Mar 19
2
Reshape from long to wide
...rame`(data, , variables, drop = FALSE) :
undefined columns selected
Then I rename the columns:
>myvars<-c("fam","length")
>fish<-fish[myvars]
and try the cast() again with no luck (same error)
By using reshape() I don't get the results I want:
>reshape(rdm1, timevar="fam", idvar=c("length"), direction="wide")
> head(first)
length
14.20 14
14.19 7
15.25 21
17.30 50
18.32 36
20.36 42
Can someone help with this? Thanks a lot!
--
View this message in context: h...