I need a full code for data prediction with SVM algorithm using R. My data is linear. Now i want to predict the value of next years.

Example:

```
SO2 NO2
5 3
10 6
```

These are data of two years 2008,2009. Here so2 is increased by 5 every year and no2 is increased by 3 every year.

Now how I have to predict next years 2010,2011. I know the value of so2 is increased by 5 every year and no2 is increased by 3 every year. Can anyone pls help me because I am new to this things.