get_listings: Access to a hypothetical rental listings database

Description Usage Arguments Examples

Description

The function expect that the following option variables are set rental.dbname, rental.host, rental.user, rental.password in order to access the remote postgres database Set thesee using e.g. options(renta.dbname="xxxxx") in your .Rprofile

Usage

1
2
3
get_listings(start_date, end_date, region, beds = NA, size = NA,
  sanity = c(400, 10000), filter = "all", include_title = FALSE,
  quiet = TRUE)

Arguments

start_date

starting date for listings (inclusive)

end_date

ending date for listings (exclusive)

region

a geographic region

beds

optional, filter by number of bedrooms. Can be integer or vector with several values

size

optional, filter by size, vector with min and max size

sanity

optional, sanity filter to exclude extremely low or high price listings

filter

optional, possible values are "all", "furnished" or "unfurnished".

quiet

optional, displays some debug info if true

Examples

1
get_listings(start_date="2017-08-01", end_date="2017-09-01", region=geometry, filter = 'unfurnished')

mountainMath/rental-listings documentation built on June 5, 2019, 5:10 a.m.