I want to extract only the month and year of this output, may i know how do you do that using R?
op_date_2 <- as.Date(data$op_date, "%d-%b-%y")
[1] "1992-01-01" "1992-01-02" "1992-01-02" "1992-01-02" "1992-01-02" "1992-01-02" "1992-01-03" "1992-01-05" "1992-01-07" "1992-01-09"
[11] "1992-01-09" "1992-01-10" "1992-01-10" "1992-01-10" "1992-01-14" "1992-01-14" "1992-01-16" "1992-01-16" "1992-01-16" "1992-01-21"
[21] "1992-01-21" "1992-01-23" "1992-01-28" "1992-01-30" "1992-01-30" "1992-01-30" "1992-02-01" "1992-02-01" "1992-02-02" "1992-02-04"