News for hackers. Stuff that matters.
Re:A newcomer’s (angry) guide to R by newen on Wednesday June 13, 2018 @10:40PM (#17308848)
It seems needlessly confusing to me to refer to the first number in a series as the 0th number. 0-based indexing is only good for offset counting, which is very much based on having a mental model based on pointer arithmetic for a number sequence.
Re:A newcomer’s (angry) guide to R by samatman on Wednesday June 13, 2018 @11:56PM (#17309167)
Which years are in the decade the Twenties?
Re:A newcomer’s (angry) guide to R by newen on Thursday June 14, 2018 @12:39AM (#17309331)
Yeah years start at 0. But that's because it measures the offset from the beginning of the calendar. You can similarly expand this to all distance based measurements. But that is completely different from counting, which shouldn't be conflated with distances. People always say the first of some sequence and only people who care about 0-based indexing tries to spread the 0th of some sequence meme.
Re:A newcomer’s (angry) guide to R by ako on Thursday June 14, 2018 @01:10AM (#17309458)
Which days are in a Month? You dont start with june 0th and end with june 29th?
Re:A newcomer’s (angry) guide to R by samatman on Thursday June 14, 2018 @12:27PM (#17312834)
I would if I could!
Re:A newcomer’s (angry) guide to R by samatman on Thursday June 14, 2018 @12:31PM (#17312871)
I may as well amuse myself here:

My ideal calendar has 12 30 day months, days 0 to 29.

If it's 10th June and you have an appointment for 0 August, that's 50 days from now.

At the end of the year, a 5 or 6 day 'month' called Holiday. 30th December becomes Christmas Day (observed) and 0 January is still New Years. New Years Eve is either 5 or 6 Holiday.

6 Holiday would be a lot of fun. ^_^