Week | Sales | Forecast |
---|---|---|

1 | 39 | 39 |

2 | 44 | 39 |

3 | 40 | 40 |

4 | 45 | 40 |

5 | 38 | 41 |

6 | 43 | 40.4 |

7 | 39 | 40.92 |

this is my data in which I have calculated Smoothing value which is the forecast column. Any suggestion to calculate smoothing value in R. I was trying to calculate smoothing but I am unable to get the exact smoothing function.

Thanks in advance