Question: The data set at rainfall _ 6 0 - 7 9 . dat records hourly rainfall at a certain location in Canada, from 1 9
The data set at rainfalldat records hourly rainfall at a certain location in Canada, from to
First, we need to load the data set into R using the function read.table Use the help function to learn how to use this function read.table Load the data set into R and make it a data frame called canadaraindf
How many rows and columns does canadaraindf have? If there are not rows and columns, something is wrong; check the previous part to see what might have gone wrong.
What is the value of row column in canadaraindf
Display the third row of canadaraindf in its entirety.
Explain what this command does:
namescanadaraindf cyear"month","day",seq
by running it on your data and examining the object. You may find the display functions head and tail useful here. Is it clear now what the last columns represent?
Create a new column in the data frame called daily, which is the sum of the rightmost columns. With this column, create a histogram of the values in this column. This new column is supposed to contain daily rainfall values. What is wrong with this picture? Check the data to discover the problem.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
