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.
library(readxl)
ruta_excel <- "C:\\Users\\wendy\\Downloads\\real_state.xlsx"
excel_sheets(ruta_excel)
## [1] "real_state"
read_excel(ruta_excel)
## # A tibble: 414 × 6
## house_age dist_metro num_stores lati longi price_house
## <chr> <chr> <dbl> <dbl> <dbl> <chr>
## 1 32.0 8487882.0 10 2498298 12154024 37.9
## 2 45431.0 3065947.0 9 2498034 12153951 42.2
## 3 45364.0 5619845.0 5 2498746 12154391 47.3
## 4 45364.0 5619845.0 5 2498746 12154391 54.8
## 5 5.0 3905684.0 5 2497937 12154245 43.1
## 6 45298.0 100503.0 3 2496305 12151254 32.1
## 7 34.5 6234731.0 7 2497933 12153642 40.3
## 8 45371.0 2876025.0 6 2498042 12154228 46.7
## 9 45504.0 5512038.0 1 2495095 12148458 45522.0
## 10 45552.0 1783.18 3 2496731 12151486 45313.0
## # ℹ 404 more rows
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:
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.