6/9/2013 1:15 7/9/2013 1:15
I have a series of data in a column of this format.
I am trying to convert it into a month and store it in a differ
How about
x <- c("6/9/2013 1:15","7/9/2013 1:15") strftime(as.Date(x, format="%m/%d/%Y %H:%M"), "%B") # [1] "June" "July"
First convert to a proper date via as.Date() then use the formatting options in strftime to get the month name.
as.Date()
strftime