Tor-G. Vagen
Written by R, Training, Workshop.
on Oct. 15, 2019 inLast update on Oct. 15, 2019.
The Regreening Africa App is now online as a Beta version. This app is designed for data collection of data on various tree planting activities, including nurseries, tree planting and farmer managed natural regeneration. Such data is critically needed to map and assess the extent and effectiveness of land restoration activities in smallholder farming systems ...
Written by R.
on Sept. 6, 2017 inLast update on Sept. 6, 2017.
RStudio is a great environment for writing and R Markdown reports, manuscripts, blogs and other types of publications. It is particularly attractive for writing manuscripts that are reproducible (see for example: https://www.r-bloggers.com/composing-reproducible-manuscripts-using-r-markdown/).
However, it can be a bit daunting at first, so here's a simple template to get you started ...
Last update on April 27, 2017.
Written by Biodiversity, Land Degradation, Soil Mapping.
on July 24, 2015 inLast update on July 24, 2015.
Efficiently checking and/or changing strings in complex data sets is often very time consuming, but R has a rich set of functions for managing strings (e.g. sentences or paragraphs). We will focus on the stringr library in this sessions, introducing a few key functions. You will need:
library(stringr ...
If you remember, Tor introduced "dplyr" package back in seminar 7. This week, Anthony Ndungu (Research Method Group) continued with "dplyr" and some examples. You can see his presentation below
Source code for 9th seminar is shown below.
#Antony Ndungu, RMG
#R Seminar
#Using ddply
#......................................................................
setwd("/Users/Antony/Documents/Antony/RMG stuffs/RTraining_ICRAF/Data/")
############################################
# library ...
Last update on March 27, 2015.
We have conducted 8 R Brown-bag seminars till now. This week we decided to revisit some of the examples shown in previous seminars, participants were asked to write code in RStudio and show results (code writing practice session).
See the presentation of seminar 8 below
Data used in this seminar is available here and source ...
Written by Biodiversity, Land Degradation, Deforestation, Soil Mapping.
on March 25, 2015 inLast update on March 27, 2015.
ggplot2 and dplyr
The seventh R brownbag seminar was by Dr. Tor G. Vagen (Senior Scientist, ICRAF) who continued from the previous week and demonstrated more advanced use of ggplot2. The dplyr package, which will be the topic of several future seminars was also introduced.
# Tor-G Vågen
# R brownbag seminar march 19th, 2015
# For those ...