Editar

Compartilhar via


rxNewDataSource: RevoScaleR Data Sources: Class Generator

Description

This is the main generator for RxDataSource S4 classes.

Usage

 ## S4 method for class `character':
rxNewDataSource  (name, ...)

Arguments

name

character name of the specific class to instantiate.

...

any other arguments are passed to the class generator name.

Details

This is a wrapper to specific class generator functions for the RCE data source classes. For example, the RxXdfData class uses function RxXdfData as a generator. Therefore either RxXdfData(...) or rxNewDataSource("RxXdfData", ...) will create an RxXdfData instance.

Value

RxDataSource data source object. This object may be used to open and close the actual RevoScaleR data sources.

Side Effects

This function creates the data source instance in the Microsoft R Services Compute Engine, but does not actually open the data. The methods rxOpen and rxClose will open and close the data.

Author(s)

Microsoft Corporation Microsoft Technical Support

See Also

RxXdfData, RxTextData, RxSasData, RxSpssData, RxOdbcData, RxTeradata, rxOpen, rxReadNext.

Examples


 fileName <- file.path(rxGetOption("sampleDataDir"), "claims.xdf")
 ds <- rxNewDataSource("RxXdfData", fileName)
 rxOpen(ds)
 myData <- rxReadNext(ds)
 rxClose(ds)