Description Usage Arguments Methods (by generic) Note See Also Examples
A simple class representing boolean (logical) square matrix runlength encoded in a columnmajor order.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33  rlebdm(x, n)
as.rlebdm(x, ...)
## S3 method for class 'matrix'
as.rlebdm(x, ...)
## S3 method for class 'edgelist'
as.rlebdm(x, ...)
## S3 method for class 'network'
as.rlebdm(x, ...)
## S3 method for class 'rlebdm'
as.matrix(x, ...)
## S3 method for class 'rlebdm'
dim(x)
## S3 method for class 'rlebdm'
print(x, compact = TRUE, ...)
## S3 method for class 'rlebdm'
Ops(e1, e2)
## S3 method for class 'rlebdm'
Math(x, ...)
## S3 method for class 'rlebdm'
compress(x, ...)
## S3 method for class 'rlebdm'
as.edgelist(x, prototype = NULL, ...)

x 
for 
n 
the dimensions of the square matrix represented. 
... 
additional arguments, currently unused. 
compact 
whether to print the matrix compactly (dots and stars) or to print it as a logical matrix. 
e1, e2 
arguments to the unary ( 
prototype 
an optional network with network attributes that
are transferred to the edgelist and will filter it (e.g., if the
prototype network is given and does not allow selfloops, the
edgelist will not have selfloops either,e ven if the dyad matrix
has non 
as.rlebdm
: Convert a square matrix of mode coercible to logical
to an
rlebdm
.
as.rlebdm
: Convert an object of class edgelist
to an rlebdm
object
whose cells in the edge list are set to TRUE
and whose other
cells are set to FALSE
.
as.rlebdm
: Convert an object of class network
to an rlebdm
object
whose cells corresponding to extant edges are set to TRUE
and
whose other cells are set to FALSE
.
compress
: Compress the rle
data structure in the
rlebdm
by merging successive runs with identical values.
as.edgelist
: Convert an rlebdm
object to an edgelist
: a twocolumn
integer matrix giving the cells with TRUE
values.
The arithmetic operators are mathematical functions are
implemented for the Ops
and the Math
group generics and
therefore work for almost all of them automatically. To preserve
the integrity of the data structure, the results are cast to
logical before return.
1 2 3 4 5 6 7 8 9 10 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.