tsdata_of function

Create ts object with values and dates