Description Usage Author(s) See Also Examples
Compares a MicroarrayData object with another Object and returns
TRUE
if they are equal. For the MicroarrayData object raw
to be equal to another Object obj
it must be true that:
1obj
is of class MAData,
\item2size(raw) == size(obj)
,
\item3equals(getLayout(raw), getLayout(obj))
is true, and
\item4the Euclidian distance between the each field in the two objects
is small.
1 2 | ## S3 method for class 'MicroarrayData'
equals(this, other, ...)
|
Henrik Bengtsson (http://www.braju.com/R/)
For more information see MicroarrayData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # The option 'dataset' is used to annotate plots.
options(dataset="sma:MouseArray")
SMA$loadData("mouse.data")
layout <- Layout$read("MouseArray.Layout.dat", path=system.file("data-ex", package="aroma"))
raw <- RawData(mouse.data, layout=layout)
ma <- getSignal(raw)
ma2 <- clone(ma)
print(equals(ma, ma2)) # TRUE
layout2 <- Layout(4,4,21,19)
setLayout(ma2, layout2)
print(equals(ma, ma2)) # FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.