RxXdfData-class: Class RxXdfData

Description

Xdf data source connection class.

Generators

The targeted generator RxXdfData as well as the general generator rxNewDataSource.

Extends

Class RxFileData, directly. Class RxDataSource, by class RxFileData.

Methods

colnames

signature(x = "RxXdfData"): ...

dim

signature(x = "RxXdfData"): ...

dimnames

signature(x = "RxXdfData"): ...

formula

signature(x = "RxXdfData"): ...

length

signature(x = "RxXdfData"): ...

names

signature(x = "RxXdfData"): ...

names<-

signature(x = "RxXdfData"): ...

row.names

signature(x = "RxXdfData"): ...

show

signature(object = "RxXdfData"): ...

str

signature(object = "RxXdfData"): ...

Author(s)

Microsoft Corporation Microsoft Technical Support

See Also

RxDataSource-class, RxXdfData, rxNewDataSource

Examples


 DS <- RxXdfData(file.path(rxGetOption("sampleDataDir"), "fourthgraders.xdf"))
 head(DS)
 tail(DS)
 names(DS)
 dim(DS)
 dimnames(DS)
 nrow(DS)
 ncol(DS)
 str(DS)

 # formula examples
 formula(DS)
 formula(DS, varsToDrop = "male")
 formula(DS, depVar = "height")
 formula(DS, depVar = "height", inter = list(c("male", "eyecolor")))

 # summarize variables in data source
 summary(DS)

 # renaming variables in .xdf file via replacement method
 XDF <- file.path(tempdir(), "iris.xdf")
 rxDataStep(iris, XDF, overwrite = TRUE)
 irisDS <- RxXdfData(XDF)
 names(irisDS)
 names(irisDS) <- c("cow","horse","chicken","goat","squirrel")
 names(irisDS)
 if (file.exists(XDF)) file.remove(XDF)