Learn R Programming

xps (version 1.32.0)

attachDataXY-methods: Attach/Remove (X,Y)-Coordinates

Description

Attach/remove (x,y)-coordinates of raw CEL-files to/from DataTreeSet.

Usage

attachDataXY(object)

removeDataXY(object)

Arguments

object
Object of class "DataTreeSet".

Value

A DataTreeSet object.

Details

attachDataXY exports (x,y)-coordinates only from data tree of ROOT data file and and saves it as data.frame in slot data.

removeDataXY removes (x,y)-coordinates from slot data and replaces data.frame data with an empty data.frame of dim(0,0).

See Also

attachInten, removeInten

Examples

Run this code
## first, load ROOT scheme file and ROOT data file
scheme.test3 <- root.scheme(paste(path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
data.test3 <- root.data(scheme.test3, paste(path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

## attach (x,y)-coordinates
data.test3 <- attachDataXY(data.test3)

## get data.frame
xy <- treeData(data.test3)
head(xy)

## remove (x,y)-coordinates
data.test3 <- removeDataXY(data.test3)

rm(scheme.test3, data.test3)
gc()

Run the code above in your browser using DataLab