Learn R Programming

leafletR (version 0.4-0)

getProperties: Print property names of a GeoJSON file

Description

Prints the names of all available properties of a GeoJSON file.

Usage

getProperties(data, print=TRUE) prop(data, print=TRUE)

Arguments

data
Path to data file as string or GeoJSON/TopoJSON object.
print
If TRUE (default), the property names are printed.

Value

See Also

styleCat, styleGrad

Examples

Run this code
## Not run: 
# data(quakes)
# qks <- toGeoJSON(data=quakes, dest=tempdir())
# getProperties(data=qks)
# ## End(Not run)

Run the code above in your browser using DataLab