Re: [Rd] Bug in as.data.frame.POSIXct?

From: Hadley Wickham <hadley_at_rice.edu>
Date: Tue, 05 Apr 2011 09:31:19 -0500

Any comments on this? Otherwise I will just submit a bug report. Hadley

On Thu, Mar 31, 2011 at 10:30 AM, Hadley Wickham <hadley_at_rice.edu> wrote:
>> a <- as.POSIXct(1:2, origin="2011-01-01")
>> dim(a) <- c(1, 2)
>> as.data.frame(a)
>                    a
> 1 2011-01-01 00:00:01
> 2 2011-01-01 00:00:02
>>
>> dim(a) <- c(2, 1)
>> as.data.frame(a)
>                    a
> 1 2011-01-01 00:00:01
> 2 2011-01-01 00:00:02
>
> I think this is because in as.data.frame.POSIXct we have
>
>  nrows <- length(x)
>
> instead of
>
>  nrows <- NROW(x)
>
> Hadley
>
>
> --
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
>

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 05 Apr 2011 - 14:35:40 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 05 Apr 2011 - 16:30:40 GMT.

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

list of date sections of archive