From ed9bb07b98a0bb1bb8d08a3442793bd8be2d08d1 Mon Sep 17 00:00:00 2001 From: "lea.douchet_ird.fr" <ldouchet@hotmail.fr> Date: Tue, 6 Dec 2022 16:00:06 +0700 Subject: [PATCH] R reminders --- 08-exercices.qmd | 14 ++++++++++++++ public/08-exercices.html | 27 +++++++++++++++++++++++---- public/search.json | 2 +- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/08-exercices.qmd b/08-exercices.qmd index f95b8e0..2eec927 100644 --- a/08-exercices.qmd +++ b/08-exercices.qmd @@ -8,6 +8,20 @@ This exercice aims at summarizing what was shown througout the training. It incl In R, it exist many differents implementation solution that lead to the same results. The solution presented here just provides one implementation among thousands of possibilities. +::: callout-important +## R REMINDERS + +1. Comment your code ! (`# important informations on the code`) + +2. Check your R objects ! (`plot()`, `print()`, `View()` , ...) + +3. Listen to R outputs ! (Errors AND Warnings) + +4. Get help ! (`?name_of_function`, internet, other users) + +5. Keep calm and take a break ! +::: + ## Create your working environment 1. Create a R project called "RGeotraining" diff --git a/public/08-exercices.html b/public/08-exercices.html index e9bbbca..1cf6f8b 100644 --- a/public/08-exercices.html +++ b/public/08-exercices.html @@ -238,7 +238,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni </ul></li> <li><a href="#go-further-in-analysis-advanced-r" id="toc-go-further-in-analysis-advanced-r" class="nav-link" data-scroll-target="#go-further-in-analysis-advanced-r">Go further in analysis (Advanced R) …</a> <ul> - <li><a href="#work-with-average-incidence" id="toc-work-with-average-incidence" class="nav-link" data-scroll-target="#work-with-average-incidence">Work with average incidence</a></li> + <li><a href="#work-with-averaged-incidence" id="toc-work-with-averaged-incidence" class="nav-link" data-scroll-target="#work-with-averaged-incidence">Work with averaged incidence</a></li> <li><a href="#let-look-at-hospital-distribution" id="toc-let-look-at-hospital-distribution" class="nav-link" data-scroll-target="#let-look-at-hospital-distribution">Let look at hospital distribution</a></li> </ul></li> </ul> @@ -265,6 +265,25 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni <p>This exercice aims at summarizing what was shown througout the training. It includes dealing with shapefile and epidemiological data in “almost real†conditions. The data represents the number of cases of an imaginary disease across Cambodia called R infections from 2018 to 2022. This infection spread rapidly and started during a training in Phnom Penh. Symptoms are very specific and includes installing Rstudio, loading data and using R software for spatial analysis and mapping.</p> <p>In R, it exist many differents implementation solution that lead to the same results. The solution presented here just provides one implementation among thousands of possibilities.</p> +<div class="callout-important callout callout-style-default callout-captioned"> +<div class="callout-header d-flex align-content-center"> +<div class="callout-icon-container"> +<i class="callout-icon"></i> +</div> +<div class="callout-caption-container flex-fill"> +REMINDERS +</div> +</div> +<div class="callout-body-container callout-body"> +<ol type="1"> +<li><p>Comment your code ! (<code># important informations on the code</code>)</p></li> +<li><p>Check your R objects ! (<code>plot()</code>, <code>print()</code>, <code>View()</code> , …)</p></li> +<li><p>Listen to R outputs ! (Errors AND Warnings)</p></li> +<li><p>Get help ! (<code>?name_of_function</code>, internet, other users)</p></li> +<li><p>Keep calm and take a break !</p></li> +</ol> +</div> +</div> <section id="create-your-working-environment" class="level2"> <h2 class="anchored" data-anchor-id="create-your-working-environment">Create your working environment</h2> <ol type="1"> @@ -702,9 +721,9 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni <section id="go-further-in-analysis-advanced-r" class="level2"> <h2 class="anchored" data-anchor-id="go-further-in-analysis-advanced-r">Go further in analysis (Advanced R) …</h2> <p>The section gives suggestions to go further into the data description.</p> -<section id="work-with-average-incidence" class="level3"> -<h3 class="anchored" data-anchor-id="work-with-average-incidence">Work with average incidence</h3> -<p>We are now interested in the averaged incidence between 2017 and 2022. In other terms, we wantto compute the mean values of incidence for each row.</p> +<section id="work-with-averaged-incidence" class="level3"> +<h3 class="anchored" data-anchor-id="work-with-averaged-incidence">Work with averaged incidence</h3> +<p>We are now interested in the averaged incidence between 2017 and 2022. In other terms, we want to compute the mean values of incidence for each row.</p> </section> <section id="let-look-at-hospital-distribution" class="level3"> <h3 class="anchored" data-anchor-id="let-look-at-hospital-distribution">Let look at hospital distribution</h3> diff --git a/public/search.json b/public/search.json index fe67806..859c428 100644 --- a/public/search.json +++ b/public/search.json @@ -277,7 +277,7 @@ "href": "08-exercices.html#go-further-in-analysis-advanced-r", "title": "Exercice", "section": "Go further in analysis (Advanced R) …", - "text": "Go further in analysis (Advanced R) …\nThe section gives suggestions to go further into the data description.\n\nWork with average incidence\nWe are now interested in the averaged incidence between 2017 and 2022. In other terms, we wantto compute the mean values of incidence for each row.\n\n\nLet look at hospital distribution\nDo I have higher incidence if there is more hospital in the province ? In other term, is there a bias in case detected cause by the access to health care ?" + "text": "Go further in analysis (Advanced R) …\nThe section gives suggestions to go further into the data description.\n\nWork with averaged incidence\nWe are now interested in the averaged incidence between 2017 and 2022. In other terms, we want to compute the mean values of incidence for each row.\n\n\nLet look at hospital distribution\nDo I have higher incidence if there is more hospital in the province ? In other term, is there a bias in case detected cause by the access to health care ?" }, { "objectID": "08-exercices.html#create-your-working-environment", -- GitLab