Description Usage Arguments Value Examples
This method allows different adjacency matrix classes to be checked.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | check_specs(object, ...)
## S3 method for class 'matrix'
check_specs(object, ...)
## S3 method for class 'dgTMatrix'
check_specs(object, ...)
## S3 method for class 'dgCMatrix'
check_specs(object, ...)
## S3 method for class 'sparseMatrix'
check_specs(object, ...)
## Default S3 method:
check_specs(object, ...)
|
object |
matrix to be analyzed. Different classes are allowed. |
... |
additional parameters to and from internal functions, currently not used. |
named boolean vector of length 2 whose first element is TRUE for directed 'objects' and whose second element is TRUE for 'object' with selfloops.
1 2 3 4 5 | el <- data.frame(from= c('a','b','b','c','d','d'),
to = c('b','c','d','a','b','a'),
attr= c( 12, 6, 12 , 6 , 6 , 6 ))
adj <- el2adj(el)
check_specs(adj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.