Package: csquares 0.1.0.0001

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.0001.tar.gz
csquares_0.1.0.0001.zip(r-4.7)csquares_0.1.0.0001.zip(r-4.6)csquares_0.1.0.0001.zip(r-4.5)
csquares_0.1.0.0001.tgz(r-4.6-any)csquares_0.1.0.0001.tgz(r-4.5-any)
csquares_0.1.0.0001.tar.gz(r-4.7-any)csquares_0.1.0.0001.tar.gz(r-4.6-any)
csquares_0.1.0.0001.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
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
Pkgdown/docs site:https://pepijn-devries.github.io
- orca - Killer whale realm
Last updated from:b11b031d8a (on main). Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 184 | ||
| source / vignettes | OK | 185 | ||
| linux-release-x86_64 | OK | 184 | ||
| macos-release-arm64 | OK | 140 | ||
| macos-oldrel-arm64 | OK | 108 | ||
| windows-devel | OK | 125 | ||
| windows-release | OK | 111 | ||
| windows-oldrel | OK | 145 | ||
| wasm-release | OK | 130 |
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:abindclassclassIntclicpp11DBIdplyre1071genericsglueKernSmoothlifecyclemagrittrMASSpillarpkgconfigproxypurrrR6Rcpprlangs2sfstarsstringistringrtibbletidyrtidyselectunitsutf8vctrswithrwk
Csquares objects
Rendered fromcsquares-objects.Rmdusingknitr::rmarkdownon May 22 2026.Last update: 2024-07-30
Started: 2024-07-25
ICES rectangles
Rendered fromices.Rmdusingknitr::rmarkdownon May 22 2026.Last update: 2024-07-25
Started: 2024-07-25
Tidy csquares
Rendered fromtidy.Rmdusingknitr::rmarkdownon May 22 2026.Last update: 2024-07-25
Started: 2024-07-25
Wildcards
Rendered fromWildcards.Rmdusingknitr::rmarkdownon May 22 2026.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 |
