Following up on this, should I report a bug? can you drive me through the process?
Cheers, Luca On Thu, Aug 6, 2015 at 4:55 PM, William Dunlap <wdun...@tibco.com> wrote: >>> Just a quick question: what's the difference between `[.Date` and >>> `[[.Date`? >>> Is it supposed to be the method for accessing the value right? >> >>For Dates and atomic vectors in general they are the same, but ... > > Even for atomic vectors with names they are not quite the same > > c(One=1, Two=2)[[2]] > [1] 2 > > c(One=1, Two=2)[2] > Two > 2 > (and [[ will only return 1 item, unlike [). > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Aug 6, 2015 at 5:36 AM, Gábor Csárdi <csardi.ga...@gmail.com> wrote: >> >> On Thu, Aug 6, 2015 at 6:30 AM, Luca Cerone <luca.cer...@gmail.com> wrote: >> [...] >> > Just a quick question: what's the difference between `[.Date` and >> > `[[.Date`? >> > Is it supposed to be the method for accessing the value right? >> >> For Dates and atomic vectors in general they are the same, but in >> general they are two different operators that behave differently on >> some data types. E.g. on lists [ selects a sub-list and [[ selects a >> single element. >> >> Gabor >> >> [...] >> >> ______________________________________________ >> R-devel@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel > > ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel