You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document contains useful R resources for R topics that you should be
13
13
familiar with prior to starting with soil and plant spectral modeling.
14
-
There are plentiful of good R books, tutorials and other online resources such as blogs that cover these aspects. Thus, feel free to explore other resources
14
+
There are plentiful of good R books, tutorials and other online resources such
15
+
as blogs that cover these aspects. Thus, feel free to explore other resources
15
16
to improve your R skills to manage and analyze your data efficiently and in a
16
17
reproducible manner. You can have a very steep learning curve in R. In
17
18
particular, being familiar with the basics of the R language and setting up a
This document contains useful R resources for R topics that you should be familiar with prior to starting with soil and plant spectral modeling. There are plentiful of good R books, tutorials and other online resources such as blogs that cover these aspects. Thus, feel free to explore other resources to improve your R skills to manage and analyze your data efficiently and in a reproducible manner. You can have a very steep learning curve in R. In particular, being familiar with the basics of the R language and setting up a proper R working environment can help you to avoid or understand common errors and pitfalls. **Bold text** in this pdf document indicates that there is a link for online resources you can click on.
6
+
7
+
R resources
8
+
===========
9
+
10
+
Install the newest version of R
11
+
-------------------------------
12
+
13
+
The [**Comprehensive R Archive Network**](https://cran.r-project.org/) (CRAN) is a network of servers that mirror code and documentation of the R language and contains the R package repository that currently features over 10000 available packages. You can download the latest binary version of R for your operating system.
14
+
15
+
Start working with the R environment
16
+
------------------------------------
17
+
18
+
[**RStudio**](https://www.rstudio.com/) is an integrated developing environment (IDE) for R. It is open source and is available for Linux, Windows and Mac. RStudio facilitates writing and executing R code and provides, among many other features, interactive help, code highlighting and completion. Download the lastest version of *RStudio Desktop (Open Source License)*.
19
+
20
+
Before you start working with R in the RStudio environment, I strongly recommend you to set up RStudio in a way that facilitates working continuously on your data analysis and modeling projects. You should always work from R scripts (text files with the extension *.R*) to document your data analysis. Creating RStudio projects helps you to keep track of your data files, scripts and outputs. Please follow the project workflow provided in [**this chapter**](http://r4ds.had.co.nz/workflow-projects.html) of the online book [**R for Data Science**](http://r4ds.had.co.nz/). Besides, this book is useful for you to learn you best practices for reading, transforming, visualizing and modeling of data.
21
+
22
+
Basic foundations for running R code are well documented in [**this chapter**](http://r4ds.had.co.nz/workflow-basics.html) of R for Data Science. This chapter covers how to work with R objects and how to do assignments to create objects with associated values. This helps you to avoid common pitfalls when working with objects in R environments.
23
+
24
+
General Introduction to R
25
+
-------------------------
26
+
27
+
The document [**An Introduction to R**](https://cran.r-project.org/doc/manuals/R-intro.pdf) is provided by the R core team. There are many other comprehensive manuals and tutorials that introduce R as well. Some of them are listed on CRAN (see [**here**](https://cran.r-project.org/) and go to `Documentation > Contributed`).
28
+
29
+
Introduction to R: *Online resources*
30
+
-------------------------------------
31
+
32
+
The free DataCamp course [**Introduction to R**](https://www.datacamp.com/courses/free-introduction-to-r/?tap_a=5644-dce66f&tap_s=10907-287229) provides you with tutorials to understand and practice working with basic R syntax and concepts of data structures such as vectors, matrices, data frames and lists. Its interactive online sessions are equipped with a virtual R environment you can directly practice within browser window. An alternative introduction tutorial to R is the [**O'RELLY Code School**](http://tryr.codeschool.com/).
33
+
34
+
To get a deeper understanding of basic R data structures I recommend you to read the Chapter 2 *Data structures* of the book [**Advanced R**](http://adv-r.had.co.nz/) (p. 13--31, see [**here**](http://adv-r.had.co.nz/Data-structures.html) for an online link to this chapter).
35
+
36
+
Data manipulation for exploratory analysis
37
+
------------------------------------------
38
+
39
+
The DataCamp course [**Exploratory Data Analysis in R: Case Study**](https://www.datacamp.com/courses/exploratory-data-analysis-in-r-case-study) offers a free case study including tutorial videos for an exploratory data analysis based on United Nations voting dataset. This course covers data rearrangement, summary, filtering and sorting based on the famous and powerful dplyr package. Check topics in session 1 Data cleaning and summarizing with dplyr. The second session of this course covers data visualization using the ggplot2 package. You might need to make a free account on DataCamp in order to work on the second session of the course.
40
+
41
+
[**This package vignette**](https://cran.r-project.org/web/packages/dplyr/vignettes/introduction.html) of the dplyr package delivers you the principles of the dplyr tools and comprehensive examples.
42
+
43
+
Good coding style
44
+
-----------------
45
+
46
+
There is not one single style guide to format well readable R code. Nevertheless, it is very helpful to have a concise and meaningful notation and naming practice as well as syntax style and code commenting guidelines. A good example of well organizing and formatting R code is provided in [**this chapter**](http://adv-r.had.co.nz/Style.html) of Advanced R.
47
+
48
+
Cheat sheets
49
+
------------
50
+
51
+
RStudio provides well-illustrated and comprehensive cheat sheets that make it easy to remember R functions for specific data analysis tasks. The cheat sheet pdf documents are available [**here**](https://www.rstudio.com/resources/cheatsheets/).
113
52
114
53
You might find those particularly useful:
115
54
116
-
-*Data Import Cheat Sheet*
117
-
-*Data Transformation Cheat Sheet*
118
-
-*RStudio IDE Cheat Sheet*
119
-
-*Data Visualization Cheat Sheet*
120
-
-*Contributed Cheatsheets: Base
121
-
R*
122
-
123
-
# List of R topics and tasks you should master prior to attending the workshop
124
-
125
-
In order to make this training course efficient and useful for you, I
126
-
expect that you have a good understanding of and be experienced with the
127
-
following aspects of R free software environment for statistical
128
-
computing and graphics:
129
-
130
-
- Be familiar to work with basic R data structures: (atomic) vectors,
131
-
lists, matrices, data frames.
132
-
- Good knowledge of subsetting operators (`[[`, `[` and `$`) and
133
-
behavior for basic R data structures. Know how to combine subsetting
134
-
and assignment (also consider the [**“Subsetting”
135
-
chapter**](http://adv-r.had.co.nz/Subsetting.html) of the Advanced R
136
-
book.
137
-
- Practice with basic R functions for working with basic R data
138
-
structures and statistics.
139
-
- Data transformation and manipulation using the dplyr package.
140
-
Familiarity with the pipe (`%>%`) operator.
141
-
- Data visualization using the base R plotting system using a generic
142
-
function such as `plot()`) as well as using the ggplot2 package.
143
-
-*Recommended*: Applied knowledge of common methods in multivariate
144
-
statistics (e.g., multiple linear regression and Principal Component
145
-
Analysis (PCA)). However, we will also cover these topics in the
146
-
course.
55
+
-*Data Import Cheat Sheet*
56
+
-*Data Transformation Cheat Sheet*
57
+
-*RStudio IDE Cheat Sheet*
58
+
-*Data Visualization Cheat Sheet*
59
+
-*Contributed Cheatsheets: Base R*
60
+
61
+
List of R topics and tasks you should master prior to attending the workshop
In order to make this training course efficient and useful for you, I expect that you have a good understanding of and be experienced with the following aspects of R free software environment for statistical computing and graphics:
65
+
66
+
- Be familiar to work with basic R data structures: (atomic) vectors, lists, matrices, data frames.
67
+
- Good knowledge of subsetting operators (`[[`, `[` and `$`) and behavior for basic R data structures. Know how to combine subsetting and assignment (also consider the [**"Subsetting" chapter**](http://adv-r.had.co.nz/Subsetting.html) of the Advanced R book.
68
+
- Practice with basic R functions for working with basic R data structures and statistics.
69
+
- Data transformation and manipulation using the dplyr package. Familiarity with the pipe (`%>%`) operator.
70
+
- Data visualization using the base R plotting system using a generic function such as `plot()`) as well as using the ggplot2 package.
71
+
-*Recommended*: Applied knowledge of common methods in multivariate statistics (e.g., multiple linear regression and Principal Component Analysis (PCA)). However, we will also cover these topics in the course.
0 commit comments