Converting data frame into Time Series using R [duplicate]
This question already has an answer here: How to convert data frame into time series? 5 answers I have a time series data of the format Time Ask Bid Trade Ask_Size Bid_Size Trade_Size 2016-11-01 09:00:12 NA 901 NA NA 100 NA 2016-11-01 09:00:21 NA NA 950 NA NA 5 2016-11-01 09:00:21 NA 950 NA NA 5 NA 2016-11-01 09:00:21 905 NA NA 10 NA NA 2016-11-01 09:00:24 NA 921 NA NA 500 NA 2016-11-01 09:00:28 NA 879 NA NA 2 NA The structure of the dataframe is str(df) 'data.frame': 35797 obs. of 7 variables: $ Time : POSIXct, format: "2016-11-01 09:00:12" "2016-11-01 09:00:21" ... $ Ask : num NA NA NA 905