R, Databases & SQL
2020-06-20
Preface
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Structure of the book
Chapter 1 introduces the DBI package. Chapter 2 explores data wrangling within database using the dplyr package. Chapters 3 and 4 introduce basic and advanced SQL
Software information
The R session information when compiling this book is shown below:
## R version 4.0.0 (2020-04-24)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 18362)
##
## Matrix products: default
##
## locale:
## [1] LC_COLLATE=English_India.1252 LC_CTYPE=English_India.1252
## [3] LC_MONETARY=English_India.1252 LC_NUMERIC=C
## [5] LC_TIME=English_India.1252
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## loaded via a namespace (and not attached):
## [1] compiler_4.0.0 magrittr_1.5 bookdown_0.18 tools_4.0.0
## [5] htmltools_0.4.0 rstudioapi_0.11 yaml_2.2.1 Rcpp_1.0.4.6
## [9] stringi_1.4.6 rmarkdown_2.1 knitr_1.27 stringr_1.4.0
## [13] xfun_0.13 digest_0.6.25 rlang_0.4.6 evaluate_0.14
We do not add prompts (>
and +
) to R source code in this book, and we comment out the text output with two hashes ##
by default, as you can see from the R session information above. This is for your convenience when you want to copy and run the code (the text output will be ignored since it is commented out). Package names are in bold text (e.g., rmarkdown), and function names are followed by parentheses (e.g., bookdown::render_book()
). The double-colon operator ::
means accessing an object from a package.