Skip to content
/ eNFI Public

National Forest Inventory eLearning Practice Module

License

Notifications You must be signed in to change notification settings

gaelso/eNFI

Repository files navigation

eNFI: eLearning National Forest Inventory

R-CMD-check GitHub release (latest by date including pre-releases)

Introduction

Welcome to the National Forest Inventory eLearning practice module.

This interactive module is designed to complement the NFI eLearning modules with practical hands-on exercises. These exercises take place on a fictional island that just emerged in the middle of the Atlantic Ocean: Louland.

It features interactive lessons designed to practice National Forest Inventory (NFI) sampling and the exploratory analysis of NFI field data with the R programming language. Although this fictional land is not an official country, we will use the acronym NFI when referring to its forest inventory as the method and formulas applied here are valid for nationwide forest inventories.


Pre-requisite:

If you don’t have any experience of programming languages and of R in particular, we strongly recommend you go through an introduction to R before you complete this module. There are plenty of resources freely available on the internet but if you don’t know where to start, and since a good amount of our code is based on the tidyverse collection of R packages, you could try R for Data Science. The introduction will guide you through installing R, R studio, key packages and the main functions that you will also use here for data wrangling.

A fair amount of code is related to spatial analysis and spatial data visualization. The online book Geocomputation with R is a good place to get more information and a deeper understanding on some of the functions used here.


How to use

The interactive lessons are available with a R package: eNFI.


This package is not ready for launch, stay tuned for the version 1.0!

The current package version number is v0.1.0, this is a pre-release with the lessons 1 and 2.1 for internal review only.


To install:

We assume that you have already an updated version of R (R >= 3.5) and Rstudio running on your computer.

If you haven't updated packages in a long time, now is a good time to do so. in Rstudio you can go to the Packages tab (bottom right panel), click update, select all and update. Note that it is best to restart R and close your current project if any before updating.

  1. Install the remotes package:

    if (!require("remotes")) install.packages("remotes")
  2. Install the development versions of learn and gradethis packages:

    remotes::install_github("rstudio/learnr")
    remotes::install_github("rstudio/gradethis")

    Note: When installing from Github, R asks you to update packages, type 3 if you don't want to update packages during this installation.

  3. Install the package eNFI from Github:

    remotes::install_github("gaelso/[email protected]")
    
  4. Restart Rstudio.

  5. If you didn't have the package learnr installed beforehand, a new tab "Tutorial" is created in the top-right panel, where you can start the eNFI lessons:

  6. Alternatively, you can start the lessons from the console:

    learnr::run_tutorial("eNFI-lesson1", "eNFI")
    learnr::run_tutorial("eNFI-lesson2.1", "eNFI")
    


Developed with learnr.

Design elements inspired by this R based online course.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About

National Forest Inventory eLearning Practice Module

Resources

License

Stars

Watchers

Forks

Packages

No packages published