Since the xdf file is created by RevoR, you can perform SQL on the data when it is coming into RevoR by adding an SQL query to RxOdbcData. A sample would look like:
foo <- RxOdbcData(sqlQuery = "SELECT * FROM foo_database",
connectionString = connectionString)
Of course you will need to have a valid ODBC connection. The RevoScaleR ODBC Import guide has information on this.
Another option is to use rxDataStep to transform the data in the xdf into a dataframe. A dataframe must be held in memory so this may not be an option if you have extremely large .xdf files. You could then use an Open Source package called sqldf which allows you to use SQL Selects on dataframes.
Artikel-id: 3104289 - Laatst bijgewerkt: 29 okt. 2015 - Revisie: 1