Re: [R] [EXT] Re: Assigning categorical values to dates

2021-07-21 Thread Tom Woolman
Sure thing. Typically with date related measures I'm going to build a time series model e.g. ARIMA or maybe something more funky like a recurrent neural net via Tensorflow. But in theory there's no reason dates can't be factors if it's in keeping with your particular design of experiment

Re: [R] [EXT] Re: Assigning categorical values to dates

2021-07-21 Thread N. F. Parsons
@Tom Okay, yeah. That might actually be an elegant solution. I will mess around with it. Thank you - I’m not in the habit of using factors and am not super familiar with how they automatically sort themselves. @Andrew Yes. Each month is a different 30,000 row file upon which this task must be

Re: [R] [EXT] Re: Assigning categorical values to dates

2021-07-21 Thread Andrew Robinson
I wonder if you mean that you want the levels of the factor to reset within each month? That is not obvious from your example, but implied by your question. Andrew -- Andrew Robinson Director, CEBRA and Professor of Biosecurity, School/s of BioSciences and Mathematics & Statistics University