Package: csquares 0.1.0
csquares: Concise Spatial Query and Representation System (c-Squares)
Encode and decode c-squares, from and to simple feature (sf) or spatiotemporal arrays (stars) objects. Use c-squares codes to quickly join or query spatial data.
Authors:
csquares_0.1.0.tar.gz
csquares_0.1.0.zip(r-4.5)csquares_0.1.0.zip(r-4.4)csquares_0.1.0.zip(r-4.3)
csquares_0.1.0.tgz(r-4.4-any)csquares_0.1.0.tgz(r-4.3-any)
csquares_0.1.0.tar.gz(r-4.5-noble)csquares_0.1.0.tar.gz(r-4.4-noble)
csquares_0.1.0.tgz(r-4.4-emscripten)csquares_0.1.0.tgz(r-4.3-emscripten)
csquares.pdf |csquares.html✨
csquares/json (API)
NEWS
# Install 'csquares' in R: |
install.packages('csquares', repos = c('https://pepijn-devries.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/pepijn-devries/csquares/issues
- orca - Killer whale realm
Last updated 1 months agofrom:4a476e698d (on main). Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Sep 28 2024 |
R-4.5-win | OK | Sep 28 2024 |
R-4.5-linux | OK | Sep 28 2024 |
R-4.4-win | OK | Sep 28 2024 |
R-4.4-mac | OK | Sep 28 2024 |
R-4.3-win | OK | Sep 28 2024 |
R-4.3-mac | OK | Sep 28 2024 |
Exports:as_csquaresdrop_csquaresexpand_wildcardsformat.csquaresices_centroidsices_columnsices_from_csquaresices_rectanglesices_to_csquaresin_csquaresnew_csquaresresample_csquaresst_as_sf.csquaresst_as_sfc.csquaresst_as_stars.csquaresvalidate_csquaresvec_cast.csquaresvec_ptype2.csquares
Dependencies:abindclassclassIntclicpp11DBIdplyre1071fansigenericsglueKernSmoothlifecyclemagrittrMASSpillarpkgconfigproxypurrrR6Rcpprlangs2sfstarsstringistringrtibbletidyrtidyselectunitsutf8vctrswithrwk
Csquares objects
Rendered fromcsquares-objects.Rmd
usingknitr::rmarkdown
on Sep 28 2024.Last update: 2024-07-30
Started: 2024-07-25
ICES rectangles
Rendered fromices.Rmd
usingknitr::rmarkdown
on Sep 28 2024.Last update: 2024-07-25
Started: 2024-07-25
Tidy csquares
Rendered fromtidy.Rmd
usingknitr::rmarkdown
on Sep 28 2024.Last update: 2024-07-25
Started: 2024-07-25
Wildcards
Rendered fromWildcards.Rmd
usingknitr::rmarkdown
on Sep 28 2024.Last update: 2024-07-25
Started: 2024-07-05
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Convert lon-lat coordinates into c-square codes | as_csquares as_csquares.character as_csquares.data.frame as_csquares.default as_csquares.numeric as_csquares.sf as_csquares.sfc as_csquares.stars |
Drop c-square information from object | drop_csquares |
Expand c-squares with wildcards to all matching c-squares | expand_wildcards |
Basic csquares methods | $.csquares $<-.csquares as.character.csquares as.data.frame.csquares c.csquares cbind.csquares format.csquares merge.csquares names<-.csquares print.csquares rbind.csquares summary.csquares [.csquares [<-.csquares [[.csquares [[<-.csquares |
Get ICES geometries | ices_centroids ices_from_csquares ices_rectangles ices_to_csquares |
Valid ICES rectangle columns | ices_columns |
Match c-squares against other c-squares (with wildcards) | in_csquares |
Join 'csquares' objects using tidyverse conventions | anti_join.csquares full_join.csquares inner_join.csquares join left_join.csquares right_join.csquares semi_join.csquares st_join.csquares |
Create a c-squares raster from a bounding box | new_csquares |
Killer whale realm | orca |
Resample csquares to a different resolution | resample_csquares |
Create a simple features object from c-squares | st_as_sf st_as_sf.csquares st_as_sfc st_as_sfc.csquares |
Coerce csqaures object into a stars object | st_as_stars.csquares |
Tidyverse methods for csquares objects (drop the 'csquares'-suffix) | arrange.csquares as_tibble.csquares distinct.csquares drop_na.csquares filter.csquares group_by.csquares group_split.csquares mutate.csquares nest.csquares pivot_longer.csquares pivot_wider.csquares rename.csquares rename_with.csquares rowwise.csquares select.csquares slice.csquares summarise.csquares tidyverse ungroup.csquares unite.csquares unnest.csquares unnest.csquares_nested |
Test if a csquares object is valid | validate_csquares |
vctrs methods for csquares objects | vctrs vec_cast.csquares vec_cast.csquares.character vec_cast.csquares.csquares vec_cast.csquares.default vec_ptype2.csquares vec_ptype2.csquares.character vec_ptype2.csquares.csquares vec_ptype2.csquares.default |