Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

QA: Does RevoScaleR only work with .xdf files, or can data frames be used for analysis too?


View products that this article applies to.

Data frames can be used in many RevoScaleR functions. Smaller data sets or excerpts from big data stored in an .xdf file can be read into an R data frame, and all of R's functionality is available for data frames 

This example reads the first 10 rows from the CensusWorkers .xdf file into a data frame: 

censusWorkers<-file.path(rxGetOption("sampleDataDir"),"CensusWorkers") 
myCensusDF <- rxReadXdf(censusWorkers,numRows = 10)
 

and this example compares rxLinMod and lm results using the iris data: 

irisLinMod <- rxLinMod(Sepal.Length ~ Sepal.Width, data = iris) 
summary(irisLinMod) 
irisLM <- lm(Sepal.Length ~ Sepal.Width, data = iris, contrasts=list(Species = contr.SAS)) 
summary(irisLM)   

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3104255
Revision : 1
Created on : 1/7/2017
Published on : 10/29/2015
Exists online : False
Views : 62