From the course: R for Excel Users
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Moving data from R to Excel - R Tutorial
From the course: R for Excel Users
Moving data from R to Excel
- [Narrator] In the prior video, we took a look at a function called read.csv, which helps move data from Excel into R by way of a CSV file. We'll take a look at a companion function write.csv in this video. The function write.csv just reverses the process. Instead of importing from Excel to R, we'll use it to export from R into Excel. And we need some data to export. So we'll use the data frame that comes with the contributed package named DescTools. We can get at that data frame by running the library function on DescTools, and we'll start out with that package just as we did earlier. Because we have already installed the DescTools package, there is no need to do it again, and we can start by using the library command to call that package. You can submit a single line of R code as here by selecting that line and then pressing Control + R and the DescTools package includes a data frame called d.pizza, which is the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.