fixdiag | R Documentation |
Check if an object has fixed diagonal
fixdiag(x, ...)
fixdiag(x, ...) <- value
## S3 method for class 'ff'
fixdiag(x, ...)
## Default S3 method:
fixdiag(x, ...)
## S3 method for class 'dist'
fixdiag(x, ...)
x |
an ff or ram object |
value |
assignement value |
... |
further arguments (not used) |
ff symmetric matrices can be declared to have fixed diagonal at creation time. Compatibility function fixdiag.default
returns NULL, fixdiag.dist
returns 0.
NULL or the scalar representing the fixed diagonal
Jens Oehlschlägel
fixdiag
, ff
, dist
fixdiag(matrix(1:16, 4, 4))
fixdiag(dist(rnorm(1:4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.