individual assignment 1.Rmd - -title"Indiviual Assignment 1 author"472519-Kevin Jin date output pdf_document default html_document default-`{r setup

individual assignment 1.Rmd - -title"Indiviual Assignment 1...

This preview shows page 1 - 2 out of 2 pages.

--- title: "Indiviual Assignment 1" author: "472519-Kevin Jin" date: "9/1/2019" output: pdf_document: default html_document: default --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. ```{r} library(MASS) ?Boston #(a)In the help window, we can see the Boston data frame has 506 rows and 14 columns. #Descritions for each column is also there. attach(Boston) #Attach Boston data to current environment dim(Boston) #Can also use dim function.The Boston data frame has 506 rows and 14 columns. plot(black,medv,xlab = "black", ylab = "medv") #(b)The most expensive houses are almost in the #area with least black plot(dis, age ,xlab = "dis", ylab = "age") #(b)Most of new houses are built near five #Boston employment centres. plot(crim,medv, xlab = "crim", ylab = "medv") #(b) Area with high crim rate has low house price. pairs(~zn+indus+chas+nox+rm+dis+ptratio+crim,Boston) #(c)Use pairs #to explore relationship with crim first plot(dis,crim)
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '17

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes