To import a .csv file directly from the web into RStudio, such as one of the ones below, we use the following command:
read.csv("web address")
For instance, to import the governors data file, and give it the name
gov
, we enter the following at the console prompt in
RStudio (you can copy and paste!):
gov = read.csv("https://mphitchman.com/stats/data/gov24.csv")
In general, when you are importing a .csv file from the web, I
encourage you to right click on the link to copy the link address, and
then paste it (between quotes!) in the read.csv("")
command.