Skip to content

feat(r/sedonafns): Add generated Sedona documentation as an R package#851

Draft
paleolimbot wants to merge 10 commits into
apache:mainfrom
paleolimbot:r-more-fns
Draft

feat(r/sedonafns): Add generated Sedona documentation as an R package#851
paleolimbot wants to merge 10 commits into
apache:mainfrom
paleolimbot:r-more-fns

Conversation

@paleolimbot
Copy link
Copy Markdown
Member

Still in the works, but the idea is to have sd_xxx() functions that get translated to st_xxx function calls, where standard R tools know how to display the docs or query them.

library(sedonadb)
library(sedonafns)

sd_read_sf(system.file("shape/nc.shp", package = "sf")) |> 
  sd_transmute(
    NAME,
    area = sd_area(wkb_geometry)
  )
#> <sedonab_dataframe: NA x 2>
#> ┌─────────────┬─────────────────────┐
#> │     NAME    ┆         area        │
#> │     utf8    ┆       float64       │
#> ╞═════════════╪═════════════════════╡
#> │ Ashe        ┆ 0.11428350451751612 │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Alleghany   ┆ 0.06139975567930378 │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Surry       ┆  0.1430162843025755 │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Currituck   ┆ 0.06977097556227818 │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Northampton ┆ 0.15275930054485798 │
#> ├╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
#> │ Hertford    ┆ 0.09715755874640308 │
#> └─────────────┴─────────────────────┘
#> Preview of up to 6 row(s)

Created on 2026-05-16 with reprex v2.1.1

@github-actions github-actions Bot requested a review from prantogg May 16, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant