R assignment for database
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.)
The post R assignment for database first appeared on COMPLIANT PAPERS.
