Search code examples
rgoogle-colaboratory

How do I import a csv file into Google Colab that uses R kernel?


I have a csv on my computer that I can upload to Google Drive. I am trying to use a Google colab but in R and not Python. How can I import this csv?


Solution

  • https://stackoverflow.com/a/57927212/5333248

    Here a workaround for you.

    Lateral arrow on top-left of the screen >> files >> upload.

    In this way you can upload the .csv file from your pc. There's even a Mount Drive option in the same path, but as I understand is only for python.

    The file last only for the current session. You'll need to re-upload it every time you reopen the notebook on Google Colab!

    Just to clarify which is the lateral arrow