pp_ancillary: Ancillary Information from OSM Features

View source: R/pp_ancillary.R

pp_ancillaryR Documentation

Ancillary Information from OSM Features

Description

Ancillary Information from OSM Features

Usage

pp_ancillary(x, volume = NULL, key)

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

Value

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

Examples

## Not run: 
    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')

## End(Not run)


populR documentation built on March 31, 2023, 9:11 p.m.