Skip to content

Commit

Permalink
Fix issue, define 'sticky'
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Oct 25, 2017
1 parent 2542924 commit db001dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02-spatial-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ summary(world["lifeExp"])
```

Although we have only selected one variable for the `summary` command, it also outputs a report on the geometry such as its `MULTIPOLYGON` geometry type.
This is due to the sticky behavior of the geometry columns of **sf** objects (see Chapter \@ref(attr)).
This demonstrates the 'sticky' behavior of the geometry columns of **sf** objects, meaning the geometry is kept unless the user deliberately removes them, as we'll see in section \@ref(vector-attribute-manipulation).
Hence, the result provides a quick summary of both the non-spatial and spatial data contained in `world`: the average life expectancy is 73 years (ranging from less than 50 to more than 80 years) across all countries which are represented in the form of `MULTIPOLYGON` geometries.
`MULTIPOLYGON` geometries allow more than one polygon per row (here: country).
This representation is necessary for countries with many islands such as Indonesia and Greece.
Expand Down

0 comments on commit db001dc

Please sign in to comment.