title | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.service | ms.assetid | ROBOTS | audience | ms.devlang | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rxSetInfo function (revoAnalytics) | Microsoft Docs |
Set .xdf file or data frame information, such as a description |
(revoAnalytics), rxSetInfo, attribute |
chuckheinzelman |
charlhe |
cgronlun |
07/15/2019 |
reference |
mlserver |
Set .xdf file or data frame information, such as a description
rxSetInfo(data, description = "")
rxSetInfoXdf(file, description = "")
An .xdf file name, an RxXdfData object, or a data frame.
An .xdf file name or an RxXdfData object
character string containing the file or data frame description
An RxXdfData object representing the .xdf file, or a new
data frame with the .rxDescription
attribute set to the
specified description
.
# Create a sample data frame and .xdf file
outFile <- tempfile(pattern= ".rxTempFile", fileext = ".xdf")
if (file.exists(outFile)) file.remove(outFile)
origData <- data.frame(x=1:10)
rxDataStep(inData = origData, outFile = outFile, rowsPerRead = 5)
# Set a description in the data file
myDescription <- "Hello Data File!"
rxSetInfo( data = outFile, description = myDescription)
rxGetInfo(outFile)
# Read a data frame out of the output file
myData <- rxDataStep(outFile )
# Look at its attribute
attr(myData, ".rxDescription")
file.remove(outFile)
myNewDescription = "Good-by data."
myData <- rxSetInfo(data=myData, description = myNewDescription)
rxGetInfo(myData)