timeseriesusingRlanguage