Chapter 7 Introduction to sf and stars
]
library("cubelyr")
library("dplyr") #data wrangling
library("MASS") #linear discriminant analysis
library("sf") #simple features
library("spDataLarge") #contains Bristol data
library("stars") #useful for rasters and data cubes
library("tidyr") #pivoting
library("units")
library("xts") #time series tools
sessionInfo()
## R version 4.3.3 (2024-02-29)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 22.04.4 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0
##
## locale:
## [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
## [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
## [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
## [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
##
## time zone: UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] xts_0.13.2 zoo_1.8-12 units_0.8-5
## [4] tidyr_1.3.1 spDataLarge_2.1.1 MASS_7.3-60.0.1
## [7] cubelyr_1.0.2 colorspace_2.1-0 stars_0.6-5
## [10] abind_1.4-5 s2_1.1.6 rnaturalearthdata_1.0.0
## [13] rnaturalearth_1.0.1 maps_3.4.2 ggplot2_3.5.0
## [16] dplyr_1.1.4 sf_1.0-16
##
## loaded via a namespace (and not attached):
## [1] sass_0.4.9 utf8_1.2.4 generics_0.1.3 class_7.3-22
## [5] KernSmooth_2.23-22 lattice_0.22-5 digest_0.6.35 magrittr_2.0.3
## [9] evaluate_0.23 grid_4.3.3 bookdown_0.38 fastmap_1.1.1
## [13] jsonlite_1.8.8 e1071_1.7-14 DBI_1.2.2 httr_1.4.7
## [17] purrr_1.0.2 fansi_1.0.6 scales_1.3.0 codetools_0.2-19
## [21] jquerylib_0.1.4 cli_3.6.2 rlang_1.1.3 munsell_0.5.1
## [25] withr_3.0.0 cachem_1.0.8 yaml_2.3.8 parallel_4.3.3
## [29] tools_4.3.3 vctrs_0.6.5 R6_2.5.1 proxy_0.4-27
## [33] lifecycle_1.0.4 classInt_0.4-10 pkgconfig_2.0.3 terra_1.7-71
## [37] pillar_1.9.0 bslib_0.7.0 gtable_0.3.4 glue_1.7.0
## [41] Rcpp_1.0.12 xfun_0.43 tibble_3.2.1 tidyselect_1.2.1
## [45] highr_0.10 rstudioapi_0.16.0 knitr_1.45 farver_2.1.1
## [49] htmltools_0.5.8.1 rmarkdown_2.26 wk_0.9.1 compiler_4.3.3