Code


Here you can find R tutorials and Python code that I have developed and frequently update. These tutorials and code snippets come from my own coding, short workshops and invited talks that I gave for students, colleagues, and universities in both English and Portuguese.

If you want to invite me to give a talk or lead a workshop at your institution, email me at workshop@robertvidigal.com

Introduction to R

Introduction to R Tutorial is a beginner-friendly guide to the R programming language.

 
Introduction to Python

Python is a general-purpose, high-level programming language that is easy to learn and use.

 
AWS S3 Data Pull

Learn the basics of Amazon Simple Storage Service (S3), including how to access buckets, download and write objects.

 
Object and Data Classes in R

Learn about object and data classes in R, and how to use them to organize and analyze your data.

 
Data Structures in Python

This tutorial will teach you about the different data structures available in Python and how to use them to store and organize data.

 
Twitter Data Pull

This Python code pulls posts, likes, friends, and user timeline from Twitter raw data.

 
Subsetting & Merging Data in R

Learn how to work with different data types in R, how to subset data, and how to merge data sets.

 
Classes & Methods in Python

How to create and use classes and methods in Python, the building blocks of object-oriented programming.

 
Facebook Data Pull

This Python code pulls user posts and page likes from Facebook raw data.

 
Introduction to IRT

Learn the basics of Item Response Theory (IRT), a statistical method for analyzing test items and measuring a latent trait or ability.

 
Descriptive Statistics

Learn the basics of descriptive statistics, including measures of central tendency, measures of dispersion, and hypothesis testing.

 
YouTube Data Pull

This Python code unzips YouTube takeout data and pull videos metadata from the YouTube API.

 
Labels in R

Learn how to add labels to variables and values in R with this tutorial.

 
Differential Item Functioning (DIF)

Learn about differential item functioning (DIF), a statistical method for identifying items on a test that function differently for different groups of people.

 
Weighted Networks

Learn how to create weighted networks, which are networks where the ties among nodes have weights assigned to them.

 
| Copyright 2024