cars_data<-read.csv(“cars_data.csv”)
cars_data<-read.csv("cars_data.csv")
mean(cars_data$mpg)
## [1] 20.09062
min(cars_data$mpg)
## [1] 10.4
max(cars_data$mpg)
## [1] 33.9
length(cars_data$mpg)
## [1] 32
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
cars_data<-read.csv("cars_data.csv")
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
``` r
mean(cars_data$mpg)
## [1] 20.09062
max(cars_data$mpg)
## [1] 33.9
length(cars_data$mpg)
## [1] 32
mean(cars_data$mpg)
## [1] 20.09062
mean(cars_data$mpg)
## [1] 20.09062