I have a date-time column in my database in a format of "2017-01-02 8:27" as example and column name is EventTime. I want to add 10 minutes to this date-time version.
I would use the minute function from the lubridate package as follows.
library(lubridate)
#>
#> Attaching package: 'lubridate'
#> The following object is masked from 'package:base':
#>
#> date
x <- ymd_hm("2017-01-02 8:27")
x
#> [1] "2017-01-02 08:27:00 UTC"
minute(x) <- minute(x) + 10
x
#> [1] "2017-01-02 08:37:00 UTC"