Skip to content

Commit c7cec74

Browse files
author
David O'Sullivan
committed
intro to R materials updated
1 parent c9574cd commit c7cec74

10 files changed

+21
-8
lines changed

GISC-422.Rproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX

README.pdf

-82.7 KB
Binary file not shown.

labs/intro-to-R-and-friends/01-introducing-r-and-rstudio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Introducing *R* and *RStudio*
33
This lab will introduce you to the statistical analysis and programming environment *R*, running in *RStudio* (which makes it a bit easier to deal with). *R* has become one of the standard tools for statistical analysis particularly in the academic research community, but [increasingly also in commercial and other work settings](https://statfr.blogspot.com/2018/08/r-generation-story-of-statistical.html). It is well suited to this environment for a number of reasons, particularly
44

labs/intro-to-R-and-friends/02-installing-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Installing packages in *RStudio*
33
One of the major advantages of *R* is its extensibility via *literally thousands* of additional packages tailored to specific applications. There is an extensive ecosystem of packages specifically for spatial applications. There is also a large array of packages collectively known as 'the tidyverse' that we will be using, which make data management and manipulation a little bit easier than in base *R*.
44

labs/intro-to-R-and-friends/03-simple-data-exploration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Simple visualization and mapping
33
## Preliminaries
44
If you haven't worked through the other two sets of instructions for this week [go back there and do this now](README.md).

labs/intro-to-R-and-friends/04-simple-maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Making simple maps
33
To mentally prepare you for what's coming, the next few paragraphs walk you through making a map of some data, using the `sf` and `tmap` packages. I think it is helpful to do this just to get a feeling for what is going on before we dive into details in the coming weeks.
44

labs/intro-to-R-and-friends/05-r-markdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# _R Markdown_
33
One further element of the _R_ and _RStudio_ ecosystem that we will touch on briefly this week, and will see more of through the semester is _R Markdown_.
44

@@ -33,7 +33,7 @@ In effect, you are running an *R* session in pieces, inside a document that expl
3333
That's pretty smart (I think it is anyway). But there's more.
3434

3535
## Viewing the document as formatted output
36-
**UPDATE: this only works in RStudio version 1.4 and higher, and the lab machines are only at 1.3.** First, you can also view the document in a nicely formatted display mode. To do this find the drop-down list next to the little 'gear wheel' icon at the top of the file viewing tab. Select the **Use Visual Editor** option. After a pause, you should see the file display change to a nicely formatted output combining formatted explanatory text, and code chunks.
36+
First, you can also view the document in a nicely formatted display mode. To do this find the drop-down list next to the little 'gear wheel' icon at the top of the file viewing tab. Select the **Use Visual Editor** option. After a pause, you should see the file display change to a nicely formatted output combining formatted explanatory text, and code chunks.
3737

3838
In this view you will also find controls to allow you to edit markdown in the same way you might write a word processed document. This is all fairly intuitive, so I'll let you figure that all out for yourself. It's helpful as you explore to switch back to the non-Visual editing mode to see how changes you make alter the markdown materials.
3939

labs/intro-to-R-and-friends/06-wrapping-up.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Wrapping up
33
The aim of this session had been to get a feel for things. Don't panic if you don't completely understand everything that is happening. The important thing is to realize
44
+ You make things happen by typing commands in the console

labs/intro-to-R-and-friends/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#### GISC 422 T1 2021
1+
#### GISC 422 T2 2023
22
# Introducing _R_ and friends—overview
33
This week we have a few things to do, which are explained in detail in the documents linked below. Before you start, download the materials in [this file](https://raw.githubusercontent.com/DOSull/GISC-422/master/labs/intro-to-R-and-friends/intro-to-R-and-friends.zip?raw=true) and unzip them to a local folder.
44

5.76 KB
Binary file not shown.

0 commit comments

Comments
 (0)