Skip to contents

Add layer to library

Usage

felt_add_library_layer(map_id, layer_id, name = NULL, clean = TRUE)

Arguments

map_id

character, map identifier from url, from https://felt.com/map/Readable-Name-map_id

layer_id

character, layer identifier from url, from felt_get_map()

name

character, name to save the layer under. Optional.

clean

logical, whether to turn the API response into a tibble::tibble

Value

a tibble::tibble if clean = TRUE, otherwise a list

Examples

if (FALSE) { # has_felt_key()
felt_add_library_layer(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA',
                      layer_id = '4Lc7RaEyRP2LfARGmR6e4C',
                      name = paste0('Test layer ', Sys.time()))
}