如何从 DataCamp 导出数据? [英] How can I export data from DataCamp?

查看:32
本文介绍了如何从 DataCamp 导出数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 DataCamp 在线学习 R.有时我想导出练习中使用的数据,但我找不到一种简单的方法来做到这一点.

I use DataCamp for online learning of R. Sometimes I would like to export the data used in the exercises, but I can't find an easy way to do so.

我知道有 下载视频或幻灯片的说明,有些课程在课程描述中提供了一些选定的数据集供下载.但是如何下载可以通过DataCamp练习界面访问的数据导出到平台外?

I know that there are instructions for downloading the videos or slides, and some courses provide some selected datasets for download in the course description. But how do I download data that I can access through the DataCamp exercise interface for export outside of the platform?

推荐答案

将数据从一个会话移动到另一个会话的一种舒适方式是函数 dput().如果数据很大,您可以分步完成:

A comfortable way to move data from one session to another is the function dput(). If the data is big you could do it in steps:

dput(df[1:100, ])
dput(df[101:200, ])
# ...
# Finally rbind() in your local session and save to hardrive

这篇关于如何从 DataCamp 导出数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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