What is the gibble

  collapse = TRUE,
  comment = "#>"

The gibble package provides a basic unit of information about the structure of a spatial data set. The key idea is of a part of spatial data, and the ways these are arranged hierarchically in spatial formats.

If we consider a very simple polygon layer, as understood by the sf package the structure is pretty simple. There are two objects (features), and the first of those has two parts - here we call them paths, because they are represented as a sequence of coordinates.



The gibble() function tells us about this structure


and works on much more complicated data sets.


The gibble() function works for data in the formats used by sf, sp, trip, and silicate. This eases the development of tools that work with these formats, because they all have the same underlying structure and we can find out the number of objects there are, how many paths those objects have, and how many coordinates each path includes without considering the way they are represented.

Try the gibble package in your browser

Any scripts or data that you put into this service are public.

gibble documentation built on July 1, 2020, 5:59 p.m.