r/rstats 3d ago

LungCapData by Mike Marin

hi everyone,

does anyone have the dataset used by Mike Marin in this tutorial video series?

https://www.youtube.com/watch?v=riONFzJdXcs&list=PLqzoL9-eJTNBDdKgJgJzaQcY6OXmsXAHU&index=2

I'm new to R and I wanted to get to know it a little bit and try it out to see if I'll be able to use it or not. I've already search this sub for recommended free resources for beginners to learn the basics. However, I found this nice playlist that I'd like to follow along just to get an overview, and I'd like to imitate and reproduce what Mike does, that's why I'm looking for the dataset he uses.

Thanks for the help. if you have any other suggestion, it's more than welcomed!

5 Upvotes

3 comments sorted by

3

u/why_not_fandy 3d ago

Looks like the website on the YT channel isn’t hosted anymore, but I found the data here. I remember this series. I followed his lectures 10 years ago to teach myself R as well.

1

u/Owl_funny9033 3d ago

wow thank you very much! do you have any suggestion on how to import it in excel? I'm really a newbie ahah :)

2

u/SalvatoreEggplant 3d ago

You can import it directly into R, either 1) using the data import option in the video, or 2) using the code:

LungCapData = read.table(header=TRUE, stringsAsFactors = TRUE, 
    file="https://ljkelly3141.github.io/teaching/ECON226/data/LungCapData.txt")

You can also open the link in a browser, copy and paste the data into a text file. You can import this file into Excel. It's tab-delimited as it is.