Introduction to R: Reading and Writing Data
In the real world you'll typically access data that exists outside of R and then read that data into your programming environment to conduct your analysis. R contains a variety of functions, both built-in and available in packages to load in data in a wide variety of formats.
In this lesson, we cover reading and writing data in CSV format as well as reading in TSV and excel files. If you encounter a data type you don't know how to deal with, you can probably find an R package to load it for you with a bit of googling.
This is lesson 10 of a 30-part introduction to the R programming language for data analysis and predictive modeling. Link to the code notebook below:
Introduction to R: Reading and Writing Data https://www.kaggle.com/hamelg/intro-to-r-part-10-reading-and-writing-data
This guide does not assume any prior exposure to R, programming or data science. It is intended for beginners with an interest in data science and those who might know other programming languages and would like to learn R.
I will create the videos for this guide such that you should be able to learn a lot just watching on YouTube, but to get the most out of the guide, it is recommended that you create a Kaggle account so that you can fork and edit each lesson so that you can follow along and run code yourself.
Follow DataDaft on social media for news and updates:
Twitter: https://twitter.com/DataDaft
Introduction to R Playlist:
https://www.youtube.com/playlist?list=PLiC1doDIe9rDjk9tSOIUZJU4s5NpEyYtE
Other Videos By DataDaft
| 2019-09-04 | How To Use ifelse in R |
| 2019-09-03 | Introduction to R: Plotting in Base R |
| 2019-08-28 | Introduction to R: Frequency Tables |
| 2019-08-27 | Introduction to R: Merging Data |
| 2019-08-23 | Introduction to R: Dealing With Dates |
| 2019-08-21 | Introduction to R: Preparing Numeric Data |
| 2019-08-20 | Introduction to R: Working with Text Data |
| 2019-08-13 | Introduction to R: Exploring and Preparing Data |
| 2019-08-12 | Introduction to R: Functions |
| 2019-08-09 | Introduction to R: Control Flow |
| 2019-08-07 | Introduction to R: Reading and Writing Data |
| 2019-08-06 | Introduction to R: Factors |
| 2019-08-05 | Introduction to R: Data Frames |
| 2019-07-15 | Introduction to R: Lists |
| 2019-07-12 | Introduction to R: Matrices |
| 2019-07-11 | Introduction to R: Vectors |
| 2019-07-10 | Introduction to R: Variables |
| 2019-07-09 | Introduction to R: Atomic Data Types |
| 2019-07-08 | Introduction to R: R Arithmetic |
| 2019-07-01 | Introduction to R: Getting Started |
| 2019-07-01 | Get the Sum of Each Row in R |

