Re: [R] When I cbind the POSIXct gets lost

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue, 12 Feb 2008 13:46:17 -0500

Please provide reproducible code. Try this:

do.call("rbind", by(iris, iris$Species, colMeans))

On Feb 12, 2008 1:34 PM, Allen S. Rout <asr_at_ufl.edu> wrote:
> "Gabor Grothendieck" <ggrothendieck@gmail.com> writes:
>
> > The point is don't use cbind -- use data.frame.
>
> Is there a conventional way to use data.frame instead of cbind when
> processing a 'by'?
>
> My code is littered with:
>
> foo <- data.frame(cbind(by( /* yadda */ )))
>
> and I've had a problem similar to the Original Poster, resulting in
> some ugly reordering, so I do the as.POSIXct _after_ the
> data.frame(cbind())
>
>
>
> - Allen S. Rout
>
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 12 Feb 2008 - 19:00:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Feb 2008 - 19:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive