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 rainfall_60-79.dat records hourly rainfall at a certain location in Canada, from 1960 to 1979.
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 canada_rain_df.
How many rows and columns does canada_rain_df have? (If there are not 4826 rows and 27 columns, something is wrong; check the previous part to see what might have gone wrong.)
What is the value of (row 3, column 3) in canada_rain_df?
Display the third row of canada_rain_df in its entirety.
Explain what this command does:
names(canada_rain_df)<- c("year","month","day",seq(0,23))
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 24 columns represent?
Create a new column in the data frame called daily, which is the sum of the rightmost 24 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!