Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

how to extract weekday from date in r

df = data.frame(date=c("2012-02-01", "2012-02-01", "2012-02-02")) 
df$day <- weekdays(as.Date(df$date))
 
PREVIOUS NEXT
Tagged: #extract #weekday #date
ADD COMMENT
Topic
Name
6+7 =