1 of 16

Interpreting

Humanist Data

Digital Scholarship Center

Halie Kerns | dscenter@binghamton.edu

2 of 16

Digital Scholarship

  • Digital Scholarship Librarians
  • Digital Scholarship Center
  • Newsletter & B-Engaged
  • Upcoming Events
    • Pop-Ups
    • Podcasting Event
    • Text Analysis Showcase
    • Workshops

3 of 16

Digital Scholarship

4 of 16

INTRODUCTION

R is a programming language and RStudio is the environment we can use to write and run the code. This presentation will go over how analyze categorical data (non-numerical) in R.

5 of 16

Data Analysis with R Series

Fall 2024 Workshops

September 10

R Basics and Descriptive Statistics

September 24

Interpreting Humanist Data

October 15

Testing Your Hypothesis

October 29

Text Analysis

November 12

Visualizing and Presenting Your Data

Feel free to recommend any topics for the future!

6 of 16

RSTUDIO INSTRUCTIONS

R is open source and free. To use it:

  • Create a Posit Cloud account to use RStudio Cloud
  • Or you can download R and RStudio

RStudio Cloud has some limitations within the free account but will work fine for our purposes.

Unless you have a familiarity with the desktop version, I recommend using the cloud version for easier file management.

7 of 16

R Concepts

Different types of data:

  • Numerical - working with numbers

  • Categorical data - all non numerical data, broken down into different categories

Statistics allows us to analyze both but in different ways. We need to know which it is before we can analyze.

8 of 16

RSTUDIO INSTRUCTIONS

Once you make an account or log in to RStudio cloud, you will need to create a New RStudio Project

For either version once open, create a new notebook or script

File > New File > R Notebook or R Script

9 of 16

RSTUDIO INSTRUCTIONS

Both options will save your code, with different options

  • R Script - just code with #comments
  • R Notebook - code blocks with regular text around them (you can delete the auto generated text)

Ctrl + Enter will execute your code/code blocks

Ctrl + Alt + I will create new code blocks in a notebook

10 of 16

DATA INSTRUCTIONS

We will be using a dataset on Titanic passengers from Github

  • Download the dataset here

For this workshop, you will working alongside me, after the class I will send out the notebook and update the link here.

  • Notebook

11 of 16

Let’s Get Started in RStudio

12 of 16

Practicing with the Notebook

13 of 16

Instructions for the Notebook

To use the R Notebook after this session

Step One

Navigate to Cloud or desktop version of RStudio

Step Two

If using cloud version, make a free account if you don’t already have one

Step Three

Download R notebook

Step Four

Open R environment in either version, four panes should be visible

Step Five

Open R notebook in R

  • In cloud UPLOAD - in lower right pane select upload, and find the file on your computer to open it
  • In desktop OPEN FILE - File > Open File

14 of 16

Upload the Notebook

Upload the R Notebook

15 of 16

Open the Notebook as a file

Open the R Notebook

16 of 16

Reach Out!

dscenter@binghamton.edu

Schedule a consultation with the digital scholarship team.

Sign-up for our newsletter!

CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, infographics & images by FreePik, Storyset