I have a dataframe in the following format
df_151=as.POSIXct("1976-09-03 23:00:00")
df_151=as.data.frame(df_151)
colnames(df_151)=c("datetime")
df_151
I am able to add a row with the following code
df_151%>%
add_row(datetime=df_151$datetime+minutes(10))
As I am dealing with 1000s of rows, this code took me 4-5 min to complete it with other operations.
I will be grateful if anyone could provide an alternative way to get faster or how can I avoid using $ in the above code.