equals.Layout: Checks if a Layout object is equals to some other object

Description Usage Arguments Author(s) Examples

Description

Checks if a Layout object is equal to some other object, which normally is another Layout object. It could however also be a list with the same fields as a Layout object.
A layout is equal to another layout if it has 1) the same number of rows and columns of grids as the other object, 2) the same number of rows and columns of spots as the other object.

Usage

1
2
## S3 method for class 'Layout'
equals(this, obj, ...)

Arguments

obj

The other object for which this object should be compared to.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

1
2
3
4
5
6
7
8
   layout1 <- Layout(4,4, 18,18)
   layout2 <- Layout(4,4, 18,18)
   layout3 <- Layout(4,4, 16,16)
   equals(layout1, layout1)   # TRUE (of course)
   equals(layout1, layout2)   # TRUE
   equals(layout2, layout1)   # TRUE (symmetric)
   equals(layout1, layout3)   # FALSE
   equals(layout2, layout3)   # FALSE

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.