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

There's more…

The rxImport() function from RevoScaleR creates the XDF file and stores metadata for each column. The important thing is that the newly created xdfFile object is not in the R session’s memory; rather the object just points to the location of the file in the persistent storage. You can call the file and perform further processing tasks. For example, if you want to see the variable's information, then rxGetInfo() will be useful. Here is some example code for seeing the variable's information:

    rxGetInfo(xdfFile, getVarInfo = TRUE) File name: D:\AllSync\Drive\Book-3\codeBundle\ch9\USAirlines2016.xdf Number of observations: 5562425 Number of variables: 9 Number of blocks: 12 Compression type: zlib Variable information: Var 1: YEAR, ...
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