From the course: R Essential Training: Wrangling and Visualizing Data

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Saving data in native R formats

Saving data in native R formats

From the course: R Essential Training: Wrangling and Visualizing Data

Start my 1-month free trial

Saving data in native R formats

- [Instructor] So now you've gone through a lot of work to get your data imported into R. You know, the thing is you don't have to do that every time. Once you get your data in there, you have an option of saving it as a native R data format. Now, there's a couple of reasons you might want to do that. Number one is you don't have to go through all the transformations again, which makes it easier and less error prone. Number two is R data objects are compressed and they can be dramatically smaller, a fraction of the original uncompressed dataset's size and that's going to do you a lot of good. So let's take a look at how this works. What I'm going to do is I'm going to start by loading pacman and a few other packages including rio and tidyverse, and then I'm going to open up a dataset that's in our project that I have done before. It's the StateData, and I'm going to import it, save it as a tibble, select a few things,…

Contents