Time Series Analysis with R: Part I

Time Series is a collection of well defined data observations over a period of time.


  • Measuring retails sales every month for a year
  • Number of births per month in a City for a specific period
  • Age of death of successive kings of England
  • Production of gold over the years based on US Geological Survey (in Metric Tons)

Analysis of Production of Gold with R:

Please refer to the DataMarket.com for getting the gold related data. It’s free. You can refer to my previous blog to import the data from Excel. In this example I have imported the data using read.csv method using the gdata Library.


The above run indicates a start = 1 and End=111 with a frequency of 1.


Plotting of Time series data:



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s