将OneDrive文件读取到R [英] Reading OneDrive files to R

查看:220
本文介绍了将OneDrive文件读取到R的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从Dropbox将csv文件读入R时,我右键单击该文件,然后单击share Dropbox link.然后,我有一个类似以下的URL:

When I read in csv files from Dropbox into R, I right-click the file and click share Dropbox link. I then have a URL something like:

https://www.dropbox.com/blahhhhhhhhhh.csv?dl=0

所以我将其更改为: read.csv("http://dl.dropbox.com/blahhhhhhhhhh.csv?dl=0", ...),它无需使用任何软件包等即可工作.

So I change it to: read.csv("http://dl.dropbox.com/blahhhhhhhhhh.csv?dl=0", ...) and it works without the need to use any packages etc.

是否可以通过类似的方式从OneDrive读取文件?

Is there a way to read files from OneDrive in a similar manner?

https://onedrive.live.com/blahhhhhhhhhhhhhhhhccsv

当我尝试将其读入R时,它没有提供我期望从文件中获得的数据帧.

As when I try to read it into R it doesn't give me the data frame I'm expecting from the file.

推荐答案

我使用公共OneDrive链接对此进行了测试:

I tested this with public OneDrive link:

  • 下载文件
  • 在下载页面中获取URL(Chrome中为Ctrl + J):

[]

  • 将URL粘贴到read.csv("url ...")

即使公共链接发生更改,这也对我有用.

This works for me even when the public link changes.

这篇关于将OneDrive文件读取到R的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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