Rstudio Create New Variable Combines Day Hour One Variable Fractional Number Days Followin Q37088546

RSTUDIO How can I create a new variable that combines day andhour into one variable that is a fractional number of days for thefollowing data set? (attached)

Here is what I currently have:

mutate(storms, Ratio = (hour/day)) %>%
arrange(desc(Ratio))
“`


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.