Created
August 2, 2016 09:04
-
-
Save alanmarazzi/7288866b60a982c7b0d1cdd0746e74d5 to your computer and use it in GitHub Desktop.
R Intro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read data from csv | |
df <- read.csv("some_data.csv") | |
# Make a plot of the data | |
plot(df$debt, df$gdp) | |
# Fit a linear regression | |
lm(gdp ~ debt, data = df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment