knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )

```
library(gibble)
```

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.

library(sf) plot(minimal_mesh)

The `gibble()`

function tells us about this structure

```
gibble(minimal_mesh)
```

and works on much more complicated data sets.

```
gibble(mpoly)
```

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.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.