Skip to content
Back to skills

Rgeos

ASecurity

R rgeos package for geometry operations. Use for geometric operations on spatial data (deprecated, use sf).

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 4, 2026
data

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill rgeos --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rgeos?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rgeos
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-rgeos/badge)](https://www.skillsdirectory.com/skills/leolin990405-rgeos)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rgeos
description: R rgeos package for geometry operations. Use for geometric operations on spatial data (deprecated, use sf).
---

# rgeos

Interface to GEOS (deprecated - use sf).

## Note

rgeos was retired in October 2023. Use sf instead.

## Migration to sf

```r
# Old rgeos way
library(rgeos)
gBuffer(sp_obj, width = 100)
gIntersection(sp1, sp2)
gUnion(sp1, sp2)
gDifference(sp1, sp2)
gArea(sp_obj)
gLength(sp_obj)
gCentroid(sp_obj)
gContains(sp1, sp2)
gIntersects(sp1, sp2)

# New sf way
library(sf)
st_buffer(sf_obj, dist = 100)
st_intersection(sf1, sf2)
st_union(sf1, sf2)
st_difference(sf1, sf2)
st_area(sf_obj)
st_length(sf_obj)
st_centroid(sf_obj)
st_contains(sf1, sf2)
st_intersects(sf1, sf2)
```

## Common Operations

```r
# Buffer
st_buffer(sf_obj, dist = 1000)

# Simplify
st_simplify(sf_obj, dTolerance = 100)

# Convex hull
st_convex_hull(sf_obj)

# Voronoi
st_voronoi(sf_obj)

# Nearest points
st_nearest_points(sf1, sf2)
```

## Predicates

```r
# Spatial predicates in sf
st_intersects(sf1, sf2)
st_disjoint(sf1, sf2)
st_touches(sf1, sf2)
st_crosses(sf1, sf2)
st_within(sf1, sf2)
st_contains(sf1, sf2)
st_overlaps(sf1, sf2)
st_equals(sf1, sf2)
st_covers(sf1, sf2)
st_covered_by(sf1, sf2)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.