The task is to check whether there is cointegration between time series
DT Os.ilosc BG.ilosc
1 2023-01-01 00:00:00 45 799.
2 2023-01-01 01:00:00 45 1100.
3 2023-01-01 02:00:00 45 1131.
4 2023-01-01 03:00:00 45 1077.
5 2023-01-01 04:00:00 45.8 1094.
6 2023-01-01 05:00:00 45 1158.
7 2023-01-01 06:00:00 44.8 1060
8 2023-01-01 07:00:00 45.2 984.
9 2023-01-01 08:00:00 45.2 965.
10 2023-01-01 09:00:00 45.8 939.
The process is fast, so data is saved every hour. I am using adf.test from the tseries package. Do I need to transform my dataframe into a time series? I usually come across daily or monthly, quarterly, yearly time series: How to convert dataframe into time series?
How to transform a dataframe containing hours?