Cassy S.

asked • 03/18/25

How should I run a code in Rstudio that will read the number of days in a month of a specific year?

Write a script to calculate the number of days in a month if a month and year is defined. This should work starting in year 2000 and extending to 2025. Use if, else if, and if statements. (17 pts)

Before starting in R, write some short pseudo code. Include appropriate commenting in the R code.

The first 2 lines of code could be:

Year <- 2001

Month <- “May”


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.