1  Introduction

Welcome to the training manual on using R, RStudio, Git, and GitHub for Household Consumption and Expenditure surveys. This manual is designed for absolute beginners and aims to provide a comprehensive introduction to these powerful technologies for use in Nutrition analysis.

1.1 Software requirements

First, we will cover R, which is a powerful and versatile programming language that is widely used for data analysis, statistical modeling, and data visualization.

  • It is an open-source software that can be freely downloaded and used by anyone. R is widely used in academia, industry, and government, and is becoming increasingly popular among data scientists and analysts.
  • It is a great tool for those who have been using other statistics tools like Excel, SAS, SPSS and want to take their data analysis skills to the next level.

This training will provide an introduction to the basics of R and will give you the skills you need to start working with data in R..

Next, we will introduce RStudio, which is a popular integrated development environment (IDE) for R.

  • RStudio provides a user-friendly interface for working with R and makes it easy to work with R packages, which are collections of pre-written R code that can be used to perform specific tasks.
  • With RStudio, you will be able to write, test, and debug your R code, and easily share your work with others.

source: https://moderndive.netlify.app/1-getting-started.html

This manual will provide step-by-step instructions for installing and setting up R and RStudio on your computer. We will also go over basic concepts and commands for working with each technology, as well as provide examples of how to use them in different contexts. With this manual, you will have the skills and knowledge you need to start using these powerful technologies to better understand your data and collaborate with others on your project.

1.2 Downloading and Installing R and Rstudio

1.2.1 Downloading and Installing R

To download R, you can visit the official R website at https://cran.r-project.org/. On the website, you will see links to download the latest version of R for Windows, Mac, and Linux. Once you have downloaded the installer for your operating system, you can run the installer and follow the prompts to install R on your computer.

Downloading and installing R:

Step 1:

Step 2:

Step 3:

Step 4:

Step 5:

Step 6:

Step 7:

Step 8:

1.2.2 Downloading and Installing RStudio

To download RStudio, you can visit the official RStudio website at https://posit.co/download/rstudio-desktop/. On the website, you will see links to download the latest version of RStudio for Windows, Mac, and Linux. Once you have downloaded the installer for your operating system, you can run the installer and follow the prompts to install RStudio on your computer.

Step 1: Navigate to https://posit.co/download/rstudio-desktop/

Step 2:

Step 3:

Step 4:

Please note that these are general instructions for a Microsoft Windows operating system, and depending on your system setup and security settings, some steps might be slightly different. Also, you will need to make sure that you have administrative access or permission to install the software on your computer.

You can also refer to the software website instruction or online tutorials that are specific to your operating system and setup.

From here we will use the term R to refer to R and Rstudio or vice-versa.

Source: https://docs.posit.co/ide/user/ide/guide/ui/ui-panes.html