Please at least supply a sample of the data. Is there more than one row per month, are there months missing, if so how to handle. You left a lot unspecified. Guidance can be provided with data.
Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Tue, Dec 6, 2016 at 1:34 PM, kbsudhir <[email protected]> wrote: > Hi All, > > I am a beginner in R. > > I have a period of dates in my data set starting 10th April'2006 till 31st > Aug'2016. Its a period of 125 months. I want to sequentially identify each > month with a number starting "1" in a new corresponding column Ex > "Month_Identifier". Ex > Apr'2006 - 1 > May'2006 - 2 ........ Aug'2016 - 125 > > Also, the datatype of the column where date is available is a factor. > > Requesting guidance on how to achieve this. > > Regards > Sudhir > > > > -- > View this message in context: http://r.789695.n4.nabble.com/ > Sequential-numbering-for-each-month-on-a-period-of-time-tp4727126.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/ > listinfo/datatable-help >
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
