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.7)cubble_1.0.0.zip(r-4.6)cubble_1.0.0.zip(r-4.5)
cubble_1.0.0.tgz(r-4.6-any)cubble_1.0.0.tgz(r-4.5-any)
cubble_1.0.0.tar.gz(r-4.7-any)cubble_1.0.0.tar.gz(r-4.6-any)
cubble_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
cubble/json (API)

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

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

Pkgdown/docs site:https://huizezhang-sherry.github.io

Datasets:

On CRAN:

Conda:

8.98 score 57 stars 1 packages 82 scripts 3.2k downloads 29 exports 47 dependencies

Last updated from:edb2d460ad. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK261
source / vignettesOK277
linux-release-x86_64OK243
macos-release-arm64OK137
macos-oldrel-arm64OK122
windows-develOK203
windows-releaseOK213
windows-oldrelOK205
wasm-releaseOK199

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:anytimeBHclassclassIntclicpp11DBIdplyre1071farvergenericsggplot2gluegtableisobandKernSmoothlabelinglifecyclelubridatemagrittrMASSncdf4pillarpkgconfigproxypurrrR6RColorBrewerRcpprlangs2S7scalessfstringistringrtibbletidyrtidyselecttimechangetsibbleunitsutf8vctrsviridisLitewithrwk

Answers to common questions and extra examples
Why summarising of temporal data by station is not in temporal form?

Last update: 2024-10-05
Started: 2023-10-11

The cubble class
The cubble object | The cubble attributes

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

Creation and coercion
Create from separate spatial and temporal tables | Coerce from foreign objects | The tibble objects | The NetCDF data | The stars objects | The sftime objects

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

Compatibility with tsibble and sf
Using a tsibble for the temporal component | A spatial component with sf | Reference

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

Making a glyph map
Understanding glyph maps | Monthly average maximum temperature in Victoria, Australia | Reference

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

Matching different data sources
Spatial matching | Temporal matching

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

Interactive graphics
Variation of diurnal temperature range in Australia | Linking with crosstalk | Creating maps with leaflet | Creating time series plot with plotly | Assembling into a linked plot | Making selection to see the linking

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

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