R Markdown

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.

LocalRents <- read.csv("https://drkblake.com/wp-content/uploads/2024/01/SAFMRNash24.csv")
LocalRents$ZIP <- as.character(LocalRents$ZIP)
View(LocalRents)
summary(LocalRents)
##      ZIP                Studio         One_BR         Two_BR        Three_BR   
##  Length:125         Min.   : 890   Min.   : 900   Min.   :1020   Min.   :1290  
##  Class :character   1st Qu.:1100   1st Qu.:1130   1st Qu.:1270   1st Qu.:1590  
##  Mode  :character   Median :1180   Median :1210   Median :1360   Median :1720  
##                     Mean   :1315   Mean   :1351   Mean   :1523   Mean   :1920  
##                     3rd Qu.:1430   3rd Qu.:1470   3rd Qu.:1650   3rd Qu.:2070  
##                     Max.   :2110   Max.   :2160   Max.   :2430   Max.   :3050  
##     Four_BR    
##  Min.   :1610  
##  1st Qu.:1960  
##  Median :2100  
##  Mean   :2345  
##  3rd Qu.:2530  
##  Max.   :3730
hist(LocalRents$Two_BR,
     main = "Fair Market Rent in Nashville-area ZIP codes",
     xlab = "2024 Two-bedroom monthly FMR")

.com.

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

Including Plots

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.