Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

How it works…

At the beginning, the setwd() function sets the data location for the R session. After that, using dir(), it extracts the name of the CSV files. This way you do not need to give the filename manually. Once you have the CSV filename stored in an object, you will be able to use that object later.

Make sure that you load the RevoScaleR library before calling the rxImport() function. Since you are working with 12 CSV files, you need a loop to call each CSV file through rxImport(). The first CSV file will then have converted into an XDF file and been stored in the USAirline2016.xdf file. The subsequent CSV file is then imported and appended into that same file.

When you run the rxImport() function, you will be able to see the following ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content