getProperties: Print property names of a GeoJSON file

View source: R/getProperties.R

getPropertiesR Documentation

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

Property names as string vector.

Author(s)

Christian Graul

See Also

styleCat, styleGrad

Examples

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

## End(Not run)

chgrl/leafletR documentation built on March 24, 2022, 7:53 a.m.