CrumpLab / psyc3400

Website for Psyc 3400 Statistics @ Brooklyn College (Taught by Matt Crump)
16 stars 15 forks source link

Loading .CSV #17

Open LindaMonterroso opened 5 years ago

LindaMonterroso commented 5 years ago

How do I load csv files into R studio cloud ??

fahd09 commented 5 years ago

Can you specify which specific file you are referring to?

On Sun, Oct 14, 2018 at 12:12 AM LindaMonterroso notifications@github.com wrote:

How do I load csv files into R studio cloud ??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CrumpLab/psyc3400/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AHDBIM6yx8iMUTFepvFbxZyXgjdn6dmgks5ukrmfgaJpZM4Xa81O .

LindaMonterroso commented 5 years ago

Lab 6 where it says "Load the data.table library. Then use the fread function and supply the web address to the file. Just like this. No downloading required."

fahd09 commented 5 years ago

You can just run this cell

library(data.table)
all_data <- fread("https://raw.githubusercontent.com/CrumpLab/statisticsLab/master/data/MehrSongSpelke2016.csv")

this will automatically locate and load the file from the internet. You can check that the file is downloaded by checking if you see all_data in the environment variables.

Best