R/data-manhattan.R

#' manhattan
#'
#' A data frame containing data on apartment rentals in Manhattan.
#'
#' @name manhattan
#' @docType data
#' @format A data frame with 20 observations on the following 1 variable.
#' \describe{
#'   \item{rent}{Monthly rent for a 1 bedroom apartment listed as "For rent by owner".}
#'   }
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(manhattan, aes(rent)) +
#'   geom_histogram(color = "white", binwidth = 300) +
#'   theme_minimal() +
#'   labs(
#'     title = "Rent in Manhattan",
#'     subtitle = "1 Bedroom Apartments",
#'     x = "Rent (in US$)",
#'     caption = "Source: Craigslist"
#'   )
"manhattan"

Try the openintro package in your browser

Any scripts or data that you put into this service are public.

openintro documentation built on June 22, 2024, 7:37 p.m.