get_volume: Get a market volume for a given city

Description Usage Arguments Details Value Author(s) Examples

Description

get_volume() scrapes a market volume for a given city, which is defined as a sum of prices of all listings published in the latest week on https://www.comparis.ch.

Usage

1
get_volume(city, delay = 1)

Arguments

city

a length one character vector indicating a city.

delay

a length one numeric vector indicating a delay between HTTP requests in seconds. Default value: 1.

Details

Note that only the latest (no older than one week) items considered.

Value

a sum of prices of all listings.

Author(s)

Iegor Rudnytskyi, iegor.rudnytskyi@unil.ch

Examples

1
pages <- get_volume("bern")

SMAC-Group/ptdspkg documentation built on Oct. 30, 2019, 11:08 p.m.