I have a data with a column(experiment_time) of DateTime in this format day month year and hour minute and second (dmy_hms). I want to extract the minutes alone from that column because it is what I need (duration between), the experiments were carried out in interval of 5minutes in R programming. I read about dates and time in lubricate but I still don't know how to resolve the issue
rainfall_data <- read.csv("C:/Users/Esther/Document/experiment_data.csv", header = TRUE)
library(tidyverse)
transmute(experiment_data, experiment_time, hour=experiment_time %/% 100, minute=experiment_time %% 100)
experiment_time hour minute
1 01-Aug-1970 13:05:00 NA NA
2 01-Aug-1970 13:10:00 NA NA
3 01-Aug-1970 13:15:00 NA NA