1.4 Why R
1.4.1 CLI vs GUI
- Command Line Interface (CLI) faster than a GUI
Example: Broadband Analyst checking Networks
Current workflow:
- Download Data from gov. agency (web browser)
- Check the data in QGIS (eyeball data) 2b. Correct data
- Transform to an appropriate CRS (coordinate system)
- Create a buffer
- Transform buffer to the previous CRS
- Send back data to gov. agency
An example of a workflow with R:
# data could be read directly from gov. agency but this is an other topic
<- sf::read_sf("my_data.shp") # read data into R
my_network ::mapview(my_network) # eyeball data
mapview# 2b still hard in R, but data could be tested
<- sf::st_transform(my_network
my_network_planarCRS 32616) # UTM
, <- sf::st_buffer(my_network_planarCRS, 500) # buffer 500m
my_buffer <- sf::st_transform(my_buffer, 4326) # transform back
my_buffer_4326 # data could also be send directly with R
Code above is fully reproducible
Volume/velocity of data: GPS/smartphone, UAV, Remote sensing etc..
“Interfaces to other software are part of R” (Rcpp, reticulate).
Lot of flexibility to produce what you need (your workflow)
Great spatial statistics