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 wrote:
>>
>> On Thu, Aug 6, 2015 at 6:30 AM, Luca Cerone wrote:
>> [...]
>> > Just a quic
s a bug, at least in the documentation of ?"for".
>
> Interestingly, lapply and co. do consider the class:
>
> invisible(lapply(seq(d1, d2, by = 1), print))
>
> works as you would expect. (The invisible() is to suppress printing
> the return value.)
>
> Gab
Dear all,
I am experiencing a weird issue when iterating through dates in R
(3.1.2 and 3.2.1 on 64bit linux machines)
I am bit surprised about the behaviour of this snippet of code:
d1 <- as.Date('2015-01-01')
d2 <- as.Date('2015-01-31')
for ( dt in seq(d1,d2, by=1) ) {
dt <- as.character(dt)
hz.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.
--
Luca Cerone
Tel: +34 692 06 71 28
Skype: luca.cerone
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel