dataflair_rng['date'] = pd.date_range('2021-12-01 12:00:00', periods = 50, freq ='H')
this syntax will give me next 50 points from 2021-12-01 12:00:00
can we do that in R ??
if yes then How ? (I used plyr
but it just resample the data )
Try this
library("chron")
date_dataflair <- seq.dates("01/12/2021", by = "day", length = 50)
For Date time
seq(from = as.POSIXct("2021-12-01", tz = "GMT"),
length.out = 50,
by = "days")