跳至内容
首页R

课程

R 数据导入入门

基础技能水平
更新时间 2026年3月
在本课程中,您将学习如何在 R 中使用 readxl 和 data.table 等工具读取 CSV、XLS 和文本文件。
免费开始课程
RData Preparation
3小时
10 视频
37 道练习
3,150 XP
200K+
成就证明

创建您的免费帐户

继续使用 Google显示更多选项


继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

深受数千家公司学习者的喜爱

Group

需要团队培训?

企业版试用

课程描述

将数据导入 R 本应是分析中最轻松的一步,但现实往往并非如此。数据格式多种多样:从 .csv 和文本文件,到统计软件文件、数据库以及 HTML 数据。了解应采用哪种方式,是顺利开始实际分析的关键。 在本课程中,您将先学习如何在 R 中读取 .csv 和文本文件。接着会介绍 readr 和 data.table 两个包,帮助您高效便捷地导入平面文件数据。之后,您将学习如何使用 readxl 在 R 中读取 .xls 文件。

先决条件

Introduction to R
1

Importing data from flat files with utils

A lot of data comes in the form of flat files: simple tabular text files. Learn how to import the common formats of flat file data with base R functions.
开始章节
2

readr & data.table

In addition to base R, there are dedicated packages to easily and efficiently import flat file data. We'll talk about two such packages: readr and data.table.
开始章节
3

Importing Excel data

Excel is a widely used data analysis tool. If you prefer to do your analyses in R, though, you'll need an understanding of how to import .csv data into R. This chapter will show you how to use readxl to do so.
开始章节
4

Reproducible Excel work with XLConnect

Beyond importing data from Excel, you can take things one step further with XLConnect. Learn all about it and bridge the gap between R and Excel.
开始章节
R 数据导入入门
课程完成

获得成就证明

将此证书添加到您的 LinkedIn 档案、简历或履历中
在社交媒体和绩效评估中分享
立即注册

加入超过19百万学习者,今天就开始R 数据导入入门!

创建您的免费帐户

继续使用 Google显示更多选项


继续操作即表示您接受我们的《使用条款》和《隐私政策》,并同意您的数据存储在美国。

通过 DataCamp for Mobile 提升您的数据技能

随时随地通过我们的移动课程和每日 5 分钟编程挑战提升技能。