如何在Colab中使用R从Google Drive读取数据? [英] How to read data from google drive using R in colab?

查看:637
本文介绍了如何在Colab中使用R从Google Drive读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在colab中使用R从Google驱动器读取csv格式的数据.我知道如何使用python进行此操作,但是我没有在R中获得相关的方法来进行此操作.

I have to read data in csv format from google drive using R in colab. I know how to do it using python, however I am not getting relevant ways to do it in R.

推荐答案

如果可以公开数据,则可以使用gdown.

If you can make your data public, you can use gdown.

system("gdown --id 12uRyLU-aAdInBtkVubhI4l3PmbYIo5aE")
data = read.csv("country_culture.csv")

这是一个示例笔记本.

这篇关于如何在Colab中使用R从Google Drive读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆