{"id":27,"date":"2023-09-14T02:10:28","date_gmt":"2023-09-14T02:10:28","guid":{"rendered":"https:\/\/harvard-open-data-project.local\/?page_id=27"},"modified":"2023-09-14T02:10:29","modified_gmt":"2023-09-14T02:10:29","slug":"data-wrangling-with-r","status":"publish","type":"page","link":"http:\/\/harvard-open-data-project.local\/data-wrangling-with-r\/","title":{"rendered":"Data Wrangling with R"},"content":{"rendered":"\n

R is a powerful, open-source programming language designed particularly for statistical analysis and data visualization. It’s built with statistical terminology in mind, making it a popular choice for data scientists and statisticians. This guide will walk you through the basics of data wrangling with R – from installing RStudio to cleaning datasets.<\/p>\n\n\n\n

Installing RStudio and Setup<\/h2>\n\n\n\n

Before diving into data wrangling, you’ll need to install the integrated development environment (IDE) for R – RStudio. Download RStudio<\/a> and follow the on-screen instructions to set it up.<\/p>\n\n\n\n

Once RStudio is installed, open it and create a new R Script document by going to “File -> New File -> R Script”. Your workspace should look something like this:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

In RStudio, you’re primarily working with four panels:<\/p>\n\n\n\n