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.

How To: How do I compute group means for a number of variables in an .xdf file?


View products that this article applies to.

The easiest way to do this is to use the 'rowSelection' argument. Here is a short example, that uses it with the RevoScaleR sample dataset 'CensusWorkers.xdf': 

inFile <- file.path(rxGetOption("sampleDataDir"), "CensusWorkers") 
rxCube(incwage ~ sex : state, data = inFile, rowSelection = age >=30 & age <=50 & wkswork1 > 40, means=TRUE)
   

↑ Back to the top


Keywords: kb

↑ Back to the top

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