df_to_ts function

Convert a data.frame into a time series (ts)