Learn R Programming

populR (version 0.2.1)

pp_ancillary: Ancillary Information from OSM Features

Description

Ancillary Information from OSM Features

Usage

pp_ancillary(x, volume = NULL, key)

Value

an object of class sf including ancillary information either for night or day estimates

Arguments

x

an object of class sf that is used to associate OSM features to. Usually, x may include polygon features representing building units

volume

x volume information (height or number of floors) useful for float ancillary information

key

OSM feature keys or values available in x

Examples

Run this code
if (FALSE) {
    data('trg')

    # Download OSM amenities
    dt <- pp_vgi(trg, key = amenity)

    # create binary ancillary information
    dt <- pp_ancillary(dt, 'amenity')

    # create ancillary information both binary and float
    dt <- pp_ancillary(dt, floors, 'amenity')
}

Run the code above in your browser using DataLab