Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
SKC Workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Apr 16, 2024
0 parents commit 7881b40
Show file tree
Hide file tree
Showing 3 changed files with 626 additions and 0 deletions.
76 changes: 76 additions & 0 deletions ReadMe.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "898b87d6-96c4-4c9b-9713-fde12d72c176",
"metadata": {},
"source": [
"# SKC JupyterLab"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "bff3dc73-02d1-49de-a397-eb086ac17c33",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"3.11.6 | packaged by conda-forge | (main, Oct 3 2023, 10:40:35) [GCC 12.3.0]\n"
]
}
],
"source": [
"import sys\n",
"print(sys.version)"
]
},
{
"cell_type": "markdown",
"id": "96eedf95-e36d-45af-84a3-ef53016628f9",
"metadata": {},
"source": [
"Lessons (Day 1):\n",
"* https://datacarpentry.org/R-ecology-lesson-alternative/index.html\n",
"* https://datacarpentry.org/R-ecology-lesson-alternative/introduction-r-rstudio.html\n",
"* https://datacarpentry.org/R-ecology-lesson-alternative/visualizing-ggplot.html\n",
"* https://datacarpentry.org/R-ecology-lesson-alternative/how-r-thinks-about-data.html\n",
"\n",
"Lessons (Day 2):\n",
"* https://datacarpentry.org/R-ecology-lesson-alternative/working-with-data.html\n",
"* https://datacarpentry.org/R-ecology-lesson/05-r-and-databases.html"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8d33cae3-32d9-431a-b806-0556792fb840",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
77 changes: 77 additions & 0 deletions prep/Preparation.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
output: html_document
editor_options:
chunk_output_type: console
---
# Lesson Prep

## Setup

Update Tools with "Tools -\> Update" (do not pin) - takes a long time - don't do in class

To have output go in console set in the config for the Rmd file set "chunk output in console"

To view Rmd rendered (click Knit to html) in seprate windows select settings of the Rmd file and select "Preview in Window"

Install Packages

```{r message=FALSE, warning=FALSE}
options(repos = list(CRAN="http://cran.rstudio.com/"))
install.packages(c("tidyverse", "lubridate", "ratdat"))
```

## Load

```{r}
library(tidyverse)
library(lubridate)
library(ratdat)
```

## Lessons Snippits

```{r}
install.packages("ggplot2")
```

```{r}
library(ggplot2)
library(ratdat)
?complete_old
```

```{r}
# View(complete_old)
```

```{r}
str(complete_old)
```

```{r}
ggplot(data = complete_old)
```

```{r}
ggplot(data = complete_old, mapping = aes(x = weight, y = hindfoot_length))
```

```{r}
ggplot(data = complete_old, mapping = aes(x = weight, y = hindfoot_length)) +
geom_point()
```
## Presentatin Style

Top/bottom
```{r}
1+2
3+4
print('Hello World')
```





473 changes: 473 additions & 0 deletions prep/Preparation.html

Large diffs are not rendered by default.

0 comments on commit 7881b40

Please sign in to comment.