Re: [R] by can not find transpose function

2017-06-20 Thread Rui Barradas
Hello, Works fine also with me: > by(phonydata2[,2:3],phonydata2[,1],t) phonydata2[, 1]: CONTROL 1 2 3 5 6 7 8 11 12 13 17 20 22 23 25 26 27 29 HGDOM1_MW1 NA NA NA NA NA 17 30 16 16 14 12 NA NA 13.5 1 NA 12 NA HGDOM1_W1 8 NA NA NA NA 18 NA 14 8 NA 15 9 NA 14.0 2 NA 18 NA

Re: [R] by can not find transpose function

2017-06-20 Thread David Winsemius
> On Jun 20, 2017, at 7:19 AM, Sorkin, John wrote: > > I am trying to transpose a dataframe by its first column using the by > statement using the t function. When I use the by function, I get a message, > > Error in FUN(X[[i]], ...) : could not find function "FUN" > > I don't think I have a

[R] by can not find transpose function

2017-06-20 Thread Sorkin, John
I am trying to transpose a dataframe by its first column using the by statement using the t function. When I use the by function, I get a message, Error in FUN(X[[i]], ...) : could not find function "FUN" I don't think I have a syntax error in my by statement because the by statment works using