InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Define a dataseries that does not start from January #84

Closed AndreaSiri closed 6 years ago

AndreaSiri commented 6 years ago

Hi everybody

Do you know how to define a TS that does not start from January?

The code we used in class makes it start from January. ElectricPrice_ts <- ts(ElectricPriceData$ElectricRate,start=2004, frequency=12)

Thank you, Andrea

sergiobuono commented 6 years ago

Hi Andrea, you can choose the month to start reading your data. Just in the start put: start=c(2010,4). Hope that helps.

Sergio

AndreaSiri commented 6 years ago

Hey Sergio,

Thank you for the suggestion.

Best, Andrea

sergiobuono commented 6 years ago

It worked here.. in your text the 4 and 2010 are twisted, not sure if it is only this.