In this tutorial we'll import a CSV file into both Python and R and do some introductory exploration and manipulation of the data. You will get introduced to data structures including Numpy arrays and lists in Python, and data frames and vectors in R. Although you should only actively try learning one language at a time, by being exposed to both you will get a sense of what they are each like, as well as a broader understanding of programming concepts. The first ~30 minutes of the video covers Python, and the remainder covers R.
Dataset for this tutorial: https://github.com/lvclark/R_Python_v...
What to install for Python: • R and Python #0.1: What to install for Python
What to install for R: • R and Python #0.2: What to install for R
Emergency R: Importing data from spreadsheet software: • Emergency R: Importing data from spreadshe...
Emergency R: Importing two-dimensional data using read.table: • Emergency R: Importing two-dimensional dat...
Table of Contents:
00:00 - Introduction
00:21 - Learning objectives
01:36 - Setting up a folder and getting the data
04:23 - Python intro
05:50 - Making a variable and running a script
06:56 - Reading a file with NumPy
13:19 - Exercise
13:43 - Extracting columns from an array
17:47 - Exercise
21:44 - Importing text from CSV in Python
27:06 - Exercise
27:56 - Intro to indexing
28:55 - Array arithmetic
31:09 - Exercise
32:34 - Intro to R
40:38 - Examining data frames
44:20 - Exercise
48:18 - Extracting columns (vectors)
50:13 - Intro to indexing
52:42 - Editing column names
55:05 - Arithmetic and adding new columns
56:58 - Exercise
59:00 - NSF Acknowledgement