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

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'))

Peer review:

Bug tracker:https://github.com/pepijn-devries/csquares/issues

Datasets:
  • orca - Killer whale realm

On CRAN:

18 exports 2 stars 5.81 score 35 dependencies 20 scripts 346 downloads

Last updated 1 months agofrom:4a476e698d (on main). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 28 2024
R-4.5-winOKSep 28 2024
R-4.5-linuxOKSep 28 2024
R-4.4-winOKSep 28 2024
R-4.4-macOKSep 28 2024
R-4.3-winOKSep 28 2024
R-4.3-macOKSep 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.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2024-07-30
Started: 2024-07-25

ICES rectangles

Rendered fromices.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2024-07-25
Started: 2024-07-25

Tidy csquares

Rendered fromtidy.Rmdusingknitr::rmarkdownon Sep 28 2024.

Last update: 2024-07-25
Started: 2024-07-25

Wildcards

Rendered fromWildcards.Rmdusingknitr::rmarkdownon Sep 28 2024.

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