Message-ID: <PAVPR10MB6816FED8E446A410A4ABF3BEBBD7A@PAVPR10MB6816.EURPRD10.PROD.OUTLOOK.COM>
Date: 2023-10-16T10:12:37Z
From: ahmet varlı
Subject: creating a time series
Hello everyone,
? had 15 minutes of data from 2017-11-02 13:30:00 to 2022-11-26 23:45:00 and number of data is 177647
? would like to ask why my time series are less then my expectation.
baslangic <- as.POSIXct("2017-11-02 13:30:00", tz = "CET")
bitis <- as.POSIXct("2022-11-26 23:45:00", tz = "CET") #
zaman_seti <- seq.POSIXt(from = baslangic, to = bitis, by = 60 * 15)
length(zaman_seti)
[1] 177642
but it has to be 177647
and secondly ? have times in this format ( 2.11.2017 13:30/DD-MM-YYYY HH:MM:SS)
su_seviyeleri_data <- as.POSIXct(su_seviyeleri_data$kayit_zaman, format = "%Y-%m-%d %H:%M:%S")
I am using this code to change the format but it gives result as Na
How can ? solve this problem?
Bests,
[[alternative HTML version deleted]]