如何将使用R内核的csv文件导入Google Colab? [英] How do I import a csv file into Google Colab that uses R kernel?
问题描述
我的计算机上有一个csv,可以上传到Google云端硬盘.我正在尝试使用Google colab,但在R中而不是在Python中.如何导入此csv?
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?
推荐答案
https://stackoverflow.com/a/57927212/5333248
这是您的解决方法.
屏幕左上方的横向箭头>>文件>>上传.
Lateral arrow on top-left of the screen >> files >> upload.
通过这种方式,您可以从PC上传.csv文件. 在同一路径中甚至有一个Mount Drive选项,但据我了解仅适用于python.
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.
该文件仅适用于当前会话.每次在Google Colab上重新打开笔记本时,都需要重新上传它!
The file last only for the current session. You'll need to re-upload it every time you reopen the notebook on Google Colab!
这篇关于如何将使用R内核的csv文件导入Google Colab?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!