Skip to content
Prev 121035 / 398500 Next

dates() is a great date function in R

Mr Natural <drstrong at ucdavis.edu> writes:

Just save the spreadsheet as a csv file and use tisFromCsv() in the fame
package.  One of the arguments tisFromCsv() takes is a dateFormat, so you can
tell it what format the date column is in.  You can also tell it the name of
the date column if it isn't some variation of DATE, Date, or date.

tisFromCsv() looks at the dates coming in and automatically figures out what
frequency the data are (quarterly, monthly, weekly, daily, etc.) and creates a
univariate or multivariate (if the spreadsheet has more than one data column)
'tis' (Time Indexed Series) object. 

Jeff