Spherical Geometry Operators Using the S2 Geometry Library

as_s2_geography | Create an S2 Geography Vector |

s2_boundary | S2 Geography Transformations |

s2_bounds_cap | Compute feature-wise and aggregate bounds |

s2_closest_feature | Matrix Functions |

s2_contains | S2 Geography Predicates |

s2_data_tbl_countries | Low-resolution world boundaries, timezones, and cities |

s2_earth_radius_meters | Earth Constants |

s2_geog_point | Create and Format Geography Vectors |

s2_is_collection | S2 Geography Accessors |

s2_lnglat | Create an S2 LngLat Vector |

s2_options | Geography Operation Options |

s2-package | s2: Spherical Geometry Operators Using the S2 Geometry... |

s2_point | Create an S2 Point Vector |

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.