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:Pepijn de Vries [aut, cre]

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

Datasets:
  • orca - Killer whale realm

On CRAN:

Conda:

spatial

5.25 score 2 stars 22 scripts 226 downloads 18 exports 34 dependencies

Last updated from:b11b031d8a (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK184
source / vignettesOK185
linux-release-x86_64OK184
macos-release-arm64OK140
macos-oldrel-arm64OK108
windows-develOK125
windows-releaseOK111
windows-oldrelOK145
wasm-releaseOK130

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 pageTopics
Convert lon-lat coordinates into c-square codesas_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 objectdrop_csquares
Expand c-squares with wildcards to all matching c-squaresexpand_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 geometriesices_centroids ices_from_csquares ices_rectangles ices_to_csquares
Valid ICES rectangle columnsices_columns
Match c-squares against other c-squares (with wildcards)in_csquares
Join 'csquares' objects using tidyverse conventionsanti_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 boxnew_csquares
Killer whale realmorca
Resample csquares to a different resolutionresample_csquares
Create a simple features object from c-squaresst_as_sf st_as_sf.csquares st_as_sfc st_as_sfc.csquares
Coerce csqaures object into a stars objectst_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 validvalidate_csquares
vctrs methods for csquares objectsvctrs 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