Package: cubble 1.0.0

cubble: A Vector Spatio-Temporal Data Structure for Data Analysis

A spatiotemperal data object in a relational data structure to separate the recording of time variant/ invariant variables. See the Journal of Statistical Software reference: <doi:10.18637/jss.v110.i07>.

Authors:H. Sherry Zhang [aut, cre], Dianne Cook [aut], Ursula Laa [aut], Nicolas Langrené [aut], Patricia Menéndez [aut]

cubble_1.0.0.tar.gz
cubble_1.0.0.zip(r-4.5)cubble_1.0.0.zip(r-4.4)cubble_1.0.0.zip(r-4.3)
cubble_1.0.0.tgz(r-4.4-any)cubble_1.0.0.tgz(r-4.3-any)
cubble_1.0.0.tar.gz(r-4.5-noble)cubble_1.0.0.tar.gz(r-4.4-noble)
cubble_1.0.0.tgz(r-4.4-emscripten)cubble_1.0.0.tgz(r-4.3-emscripten)
cubble.pdf |cubble.html
cubble/json (API)
NEWS

# Install 'cubble' in R:
install.packages('cubble', repos = c('https://huizezhang-sherry.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/huizezhang-sherry/cubble/issues

Datasets:

On CRAN:

29 exports 55 stars 3.68 score 54 dependencies 95 scripts 1.7k downloads

Last updated 5 days agofrom:9563dfef6e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 13 2024
R-4.5-winOKSep 13 2024
R-4.5-linuxOKSep 13 2024
R-4.4-winOKSep 13 2024
R-4.4-macOKSep 13 2024
R-4.3-winOKSep 13 2024
R-4.3-macOKSep 13 2024

Exports:as_cubblebind_cols.spatial_cubble_dfbind_cols.temporal_cubble_dfbind_rows.temporal_cubble_dfcheck_keycoordscubbleface_spatialface_temporalfiltergeom_glyphgeom_glyph_boxgeom_glyph_lineindexindex_varis_cubbleis_cubble_spatialis_cubble_temporalis_sfis_tsibblemake_cubblemake_spatial_sfmake_temporal_tsibblematch_sitesmatch_spatialmatch_temporalspatialunfoldupdate_cubble

Dependencies:anytimeBHclassclassIntclicolorspacecpp11DBIdplyre1071ellipsisfansifarvergenericsggplot2gluegtableisobandKernSmoothlabelinglatticelifecyclelubridatemagrittrMASSMatrixmgcvmunsellncdf4nlmepillarpkgconfigproxypurrrR6RColorBrewerRcpprlangs2scalessfstringistringrtibbletidyrtidyselecttimechangetsibbleunitsutf8vctrsviridisLitewithrwk

The cubble class

Rendered fromcb1class.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-05-31

Creation and coercion

Rendered fromcb2create.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-05-31

Compatibility with tsibble and sf

Rendered fromcb3tsibblesf.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-06-15

Making a glyph map

Rendered fromcb4glyph.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-06-15

Matching different data sources

Rendered fromcb5match.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-06-15

Interactive graphics

Rendered fromcb6interactive.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-06-15

Answers to common questions and extra examples

Rendered fromcb7misc.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2024-08-27
Started: 2023-10-11

Readme and manuals

Help Manual

Help pageTopics
Accessors to a cubble objectnames<-.spatial_cubble_df names<-.temporal_cubble_df [.spatial_cubble_df [.temporal_cubble_df [[<-.cubble_df
'dplyr' methodsarrange.spatial_cubble_df arrange.temporal_cubble_df bind_cols.spatial_cubble_df bind_cols.temporal_cubble_df bind_rows.temporal_cubble_df dplyr_col_modify.cubble_df dplyr_reconstruct.spatial_cubble_df dplyr_reconstruct.temporal_cubble_df dplyr_row_slice.spatial_cubble_df dplyr_row_slice.temporal_cubble_df filter.spatial_cubble_df group_by.spatial_cubble_df group_by.temporal_cubble_df mutate.spatial_cubble_df mutate.temporal_cubble_df rename.spatial_cubble_df rename.temporal_cubble_df rowwise.spatial_cubble_df rowwise.temporal_cubble_df select.spatial_cubble_df select.temporal_cubble_df summarise.spatial_cubble_df summarise.temporal_cubble_df ungroup.spatial_cubble_df ungroup.temporal_cubble_df
Coerce foreign objects into a cubble objectas_cubble as_cubble.data.frame as_cubble.ncdf4 as_cubble.sf as_cubble.sftime as_cubble.stars as_cubble.tbl_df
Check on key when create cubble from two components (spatial/temporal)check_key
Australia climate dataclimate_aus historical_tmax
Daily COVID count data (in 'tsibble') and Victoria LGA (in 'sf')covid lga
Create a cubble objectcubble make_cubble
Pivot a cubble object between the nested/long (spatial/temporal) formface_spatial face_spatial.spatial_cubble_df face_spatial.temporal_cubble_df face_temporal face_temporal.spatial_cubble_df face_temporal.temporal_cubble_df
Gap-filling on the temporal component of a cubble objectfill_gaps.temporal_cubble_df index_by.temporal_cubble_df scan_gaps.temporal_cubble_df
Create glyph map with ggplot2geom_glyph geom_glyph_box geom_glyph_line
Predicate functions on the object classis_cubble is_cubble_spatial is_cubble_temporal is_sf is_tsibble
Extract cubble attributescoords index index_var key.cubble_df key_data.cubble_df key_vars.cubble_df spatial spatial.spatial_cubble_df spatial.temporal_cubble_df
Update the spatial cubble to include the sf classmake_spatial_sf
Update the temporal cubble to include the tsibble class ('tbl_ts')make_temporal_tsibble
Match stations in two cubbles by spatial distance/ temporal similaritymatch_sites match_spatial match_temporal
Print methodsprint.cubble_df tbl_sum.spatial_cubble_df tbl_sum.temporal_cubble_df
Australia river datariver
Toy climate dataclimate_flat climate_mel meteo meteo_ts stations stations_sf
Augment spatial component into the long (temporal) formunfold unfold.spatial_cubble_df unfold.temporal_cubble_df
Temporary update cubble if the sf class take precedent of cubble classesupdate_cubble update_cubble.spatial_cubble_df