Create a text vector called Months with names of the 12 months of the year.
Create a numeric vector Summer, with Calendar month index positions for the summer months (inclusive, with 4 elements in all).
Use vector indexing to extract the text values of Months, indexed by Summer.
Multiply Summer by 3. What are the values of Months, when indexed by Summer multiplied by 3? Why do you get that answer?
What is the mean (average) summer month, as an integer value? Which value of Months corresponds to it? Why do you get that answer?
Use the floor() and ceiling() functions to return the upper and lower limits of Months for the average Summer month. (Hint: to find out how a function works, use R help if needed.)
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now
The post R assignment for database first appeared on COMPLIANT PAPERS.