Having trouble converting dates to weekday

Hi guys!

I'm finishing off on the Data Analytics case study on Bellabeat. I'm currently on the analyze/share phase, generating graphs for my analysis. I'm trying to convert the dates to weekday but I'm having some trouble, I'm not sure if I'm doing this right.

weekday_steps <- daily_steps %>%

  • mutate(weekday = weekdays(date))
    Error in mutate():
    :information_source: In argument: weekday = weekdays(date).
    Caused by error in UseMethod():
    ! no applicable method for 'weekdays' applied to an object of class "function"
    Run rlang::last_trace()

Hi @Mehrul_Singh_Ranavat , remember put a reproducible example.

Like this:
reprex

other way is:

# If data set is daily_steps 
# paste the output of run:
dput(head(daily_steps,20))

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.