How to create a column of "day of week" based on the dates?

893 views Asked by At

I have a Spark data.frame with a column of POSIXct data and I want to convert it to another column to show the day of week. How can I do this in SparkR? I know in R I can use weekdays() or other packages like lubridate to do this, but these functions and packages cannot be directly applied to Spark data.frame unless I am missing something. Can anybody help please?

0

There are 0 answers