Skip to content

Commit babf64e

Browse files
author
philipp-baumann
committed
Link first tutorial
1 parent 7c8c039 commit babf64e

File tree

2 files changed

+66
-140
lines changed

2 files changed

+66
-140
lines changed

00_R-basics-spectro.Rmd

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ knitr::opts_chunk$set(echo = TRUE)
1111

1212
This document contains useful R resources for R topics that you should be
1313
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
1516
to improve your R skills to manage and analyze your data efficiently and in a
1617
reproducible manner. You can have a very steep learning curve in R. In
1718
particular, being familiar with the basics of the R language and setting up a

00_R-basics-spectro.md

+64-139
Original file line numberDiff line numberDiff line change
@@ -2,145 +2,70 @@ Minimum recommended R skills for spectroscopy modeling
22
================
33
Philipp Baumann || <[email protected]>
44

5-
This document contains useful R resources for R topics that you should
6-
be familiar with prior to starting with soil and plant spectral
7-
modeling. There are plentiful of good R books, tutorials and other
8-
online resources such as blogs that cover these aspects. Thus, feel free
9-
to explore other resources to improve your R skills to manage and
10-
analyze your data efficiently and in a reproducible manner. You can have
11-
a very steep learning curve in R. In particular, being familiar with the
12-
basics of the R language and setting up a proper R working environment
13-
can help you to avoid or understand common errors and pitfalls. **Bold
14-
text** in this pdf document indicates that there is a link for online
15-
resources you can click on.
16-
17-
# R resources
18-
19-
## Install the newest version of R
20-
21-
The [**Comprehensive R Archive Network**](https://cran.r-project.org/)
22-
(CRAN) is a network of servers that mirror code and documentation of the
23-
R language and contains the R package repository that currently features
24-
over 10000 available packages. You can download the latest binary
25-
version of R for your operating system.
26-
27-
## Start working with the R environment
28-
29-
[**RStudio**](https://www.rstudio.com/) is an integrated developing
30-
environment (IDE) for R. It is open source and is available for Linux,
31-
Windows and Mac. RStudio facilitates writing and executing R code and
32-
provides, among many other features, interactive help, code highlighting
33-
and completion. Download the lastest version of *RStudio Desktop (Open
34-
Source License)*.
35-
36-
Before you start working with R in the RStudio environment, I strongly
37-
recommend you to set up RStudio in a way that facilitates working
38-
continuously on your data analysis and modeling projects. You should
39-
always work from R scripts (text files with the extension *.R*) to
40-
document your data analysis. Creating RStudio projects helps you to keep
41-
track of your data files, scripts and outputs. Please follow the project
42-
workflow provided in [**this
43-
chapter**](http://r4ds.had.co.nz/workflow-projects.html) of the online
44-
book [**R for Data Science**](http://r4ds.had.co.nz/). Besides, this
45-
book is useful for you to learn you best practices for reading,
46-
transforming, visualizing and modeling of data.
47-
48-
Basic foundations for running R code are well documented in [**this
49-
chapter**](http://r4ds.had.co.nz/workflow-basics.html) of R for Data
50-
Science. This chapter covers how to work with R objects and how to do
51-
assignments to create objects with associated values. This helps you to
52-
avoid common pitfalls when working with objects in R environments.
53-
54-
## General Introduction to R
55-
56-
The document [**An Introduction to
57-
R**](https://cran.r-project.org/doc/manuals/R-intro.pdf) is provided by
58-
the R core team. There are many other comprehensive manuals and
59-
tutorials that introduce R as well. Some of them are listed on CRAN (see
60-
[**here**](https://cran.r-project.org/) and go to `Documentation >
61-
Contributed`).
62-
63-
## Introduction to R: *Online resources*
64-
65-
The free DataCamp course [**Introduction to
66-
R**](https://www.datacamp.com/courses/free-introduction-to-r/?tap_a=5644-dce66f&tap_s=10907-287229)
67-
provides you with tutorials to understand and practice working with
68-
basic R syntax and concepts of data structures such as vectors,
69-
matrices, data frames and lists. Its interactive online sessions are
70-
equipped with a virtual R environment you can directly practice within
71-
browser window. An alternative introduction tutorial to R is the
72-
[**O’RELLY Code School**](http://tryr.codeschool.com/).
73-
74-
To get a deeper understanding of basic R data structures I recommend you
75-
to read the Chapter 2 *Data structures* of the book [**Advanced
76-
R**](http://adv-r.had.co.nz/) (p. 13–31, see
77-
[**here**](http://adv-r.had.co.nz/Data-structures.html) for an online
78-
link to this chapter).
79-
80-
## Data manipulation for exploratory analysis
81-
82-
The DataCamp course [**Exploratory Data Analysis in R: Case
83-
Study**](https://www.datacamp.com/courses/exploratory-data-analysis-in-r-case-study)
84-
offers a free case study including tutorial videos for an exploratory
85-
data analysis based on United Nations voting dataset. This course covers
86-
data rearrangement, summary, filtering and sorting based on the famous
87-
and powerful dplyr package. Check topics in session 1 Data cleaning and
88-
summarizing with dplyr. The second session of this course covers data
89-
visualization using the ggplot2 package. You might need to make a free
90-
account on DataCamp in order to work on the second session of the
91-
course.
92-
93-
[**This package
94-
vignette**](https://cran.r-project.org/web/packages/dplyr/vignettes/introduction.html)
95-
of the dplyr package delivers you the principles of the dplyr tools and
96-
comprehensive examples.
97-
98-
## Good coding style
99-
100-
There is not one single style guide to format well readable R code.
101-
Nevertheless, it is very helpful to have a concise and meaningful
102-
notation and naming practice as well as syntax style and code commenting
103-
guidelines. A good example of well organizing and formatting R code is
104-
provided in [**this chapter**](http://adv-r.had.co.nz/Style.html) of
105-
Advanced R.
106-
107-
## Cheat sheets
108-
109-
RStudio provides well-illustrated and comprehensive cheat sheets that
110-
make it easy to remember R functions for specific data analysis tasks.
111-
The cheat sheet pdf documents are available
112-
[**here**](https://www.rstudio.com/resources/cheatsheets/).
5+
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/).
11352

11453
You might find those particularly useful:
11554

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
62+
============================================================================
63+
64+
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

Comments
 (0)