datetime - Getting warning message 1 failed to parse while running wday fuction of lubridate package in r -


i trying day name using

wday(ymd("2014/09/30","%y/%m/%d"), label = t) 

output getting is

#[1]  3 na #warning message: #1 failed parse. 

can please let me know why getting error?

you don't need argument "%y/%m/%d".

just use:

wday(ymd("2014/09/30"), label = t) 

output then:

# [1] tues # levels: sun < mon < tues < wed < thurs < fri < sat 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -