Question: Problem 2. You will need to use the CSV file house.csv for this problem, which can be found on Canvas. 1. First download this

Problem 2. You will need to use the CSV file "house.csv" for

Problem 2. You will need to use the CSV file "house.csv" for this problem, which can be found on Canvas. 1. First download this data set to your computer, then use read.csv to import it into R. Make sure assign it to something for further usage. The first row should be imported as variable names. 2. Report the number of rows and the number of columns of the data set. What are the names of variables, i.e., column names? 3. Report the means of the last 8 columns. That means for each column of the last 8 columns, you find its mean (Hint: Indering the submatrix first then use function colMeans.) 1 4. Report the standard deviation of first 10 rows. (use function sd compute standard deviations.) 5. What is the class of the variable 'chas' (use function class)? Use function as.factor to change 'chas' to the class factor.

Step by Step Solution

3.36 Rating (140 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer 1 To import the CSV file housecsv into R I used the readcsv function I assigned ... View full answer

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 Mathematics Questions!