[R] ANY ONE HERE PLZ Urgent

arun smartpink111 at yahoo.com
Thu Aug 28 12:33:06 CEST 2014


Try:

format(as.Date("05/07/2014", "%m/%d/%Y"), "%m")
#[1] "05"

#or
strptime("05/07/2014", "%m/%d/%Y")$mon+1
#[1] 5



A.K.


How to extract a Month from Date object?

almost 13 peoples visited my Question with out replying in New to R , i have task yaar



don't mind plz could you HELP ME

How to extract a Month from Date object?

as.month("05/07/2014", format = "%m")

tried wityh this



More information about the R-help mailing list