[Rd] [[<-.data.frame with POSIXt replacement (PR#4808)
Jim Rogers
jrogers at cantatapharm.com
Mon Oct 27 20:38:16 MET 2003
??? Smart aleck? Honestly, I am trying my best to help. What in what I
wrote makes me sound like a smart aleck?
I now understand that I did not do everything I should have, but I
checked the places that occurred to me to check: the release notes for
1.8.0, the documentation for "[[<-" and "$<-", and an R site search for
"$<-" and "[[<-". Having thought about it, and having consulted the FAQ
for bug reports, there was nothing else that I knew to do (short of
submitting a question to R-help, in which case I was afraid I would be
accused of submitting a bug report to the wrong place).
I took a couple hours out of my day to be as sure as possible that I was
submitting a real bug. I realize that a couple hours is nothing compared
to the time that you and the development team contribute. Nonetheless,
please understand that I sent the report in the spirit of doing my
little bit to help. It would have been MUCH easier for me to do nothing
at all. Surely there is a place in the R project for people like me who,
though inexpert and unable to commit full time to the project, still
want to contribute without the fear of being insulted?
I truly do not understand.
Jim
> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Monday, October 27, 2003 2:00 PM
> To: Jim Rogers
> Cc: r-devel at stat.math.ethz.ch; R-bugs at biostat.ku.dk
> Subject: Re: [Rd] [[<-.data.frame with POSIXt replacement (PR#4808)
>
>
> It is not a bug in 1.8.0. It was a bug in 1.7.0 (and .1).
> X
> You cannot assign a POSIXlt value to a data frame correctly.
>
> Please do RTFM, especially the NEWS file. We don't need smart alecks
> here.
>
> On Mon, 27 Oct 2003 jrogers at cantatapharm.com wrote:
>
> > The following seems to be a bug introduced with version 1.8.0 (it
> > worked without error on my installation of version 1.7.0):
> >
> > > test <- data.frame(time = I(c("2003-08-19:22:55:57")))
> > > test[["time"]] <- strptime(test[["time"]], format =
> > "%Y-%m-%d:%H:%M:%S")
> > Error in "[[<-.data.frame"(`*tmp*`, "time", value =
> > strptime(test[["time"]], :
> > replacement has 9 rows, data has 1
> > > ## This generates the same error:
> > > # test$time <- strptime(test$time, format = "%Y-%m-%d:%H:%M:%S")
> >
> > _
> > platform i386-pc-mingw32
> > arch i386
> > os mingw32
> > system i386, mingw32
> > status
> > major 1
> > minor 8.0
> > year 2003
> > month 10
> > day 08
> > language R
> >
> >
> > Thanks,
> > Jim
> >
> > James A. Rogers, Ph.D. <rogers at cantatapharm.com>
> > Statistical Scientist
> > Cantata Pharmaceuticals
> > 300 Technology Square, 5th floor
> > Cambridge, MA 02139
> > 617.225.9009 x312
> > Fax 617.225.9010
> >
> > ______________________________________________
> > R-devel at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> >
> >
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
>
More information about the R-devel
mailing list