Download file from GitHub

Hi everyone,
sorry for the very dumb question, but I am trying to download this dataset from github:

and I am not able to..

I tried with:

data_swiss <- read.csv(url("https://github.com/openZH/covid_19/blob/master/COVID19_Fallzahlen_CH_total_v2.csv"))

but it doesnt work.. and there is no "download" button on the github page that I can use to download locally on my pc (even though I would prefer to directly load in R studio).
There are other dataset on that github repository, and I am unable to download any of them..
can someone explain me an easy way to do it?
Thanks

Go to Github and look for the raw button. Click on that and it will take you to here: https://raw.githubusercontent.com/openZH/covid_19/master/COVID19_Fallzahlen_CH_total_v2.csv

Then you can do

data_swiss <- read_csv("https://raw.githubusercontent.com/openZH/covid_19/master/COVID19_Fallzahlen_CH_total_v2.csv")
3 Likes

Thanks! That worked perfectly!

Yes, it isn't obvious and someone a few years ago pointed out that raw feature to me. It works perfectly for something like this.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.