Learn R Programming

leafletR (version 0.2-1)

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
Name of data file as string.
print
If TRUE (default), the property names are printed.

Value

  • Property names as string vector.

encoding

UTF-8

See Also

styleCat, styleGrad

Examples

Run this code
data(quakes)
qks <- toGeoJSON(data=quakes, dest=tempdir())
getProperties(data=qks)

Run the code above in your browser using DataLab