Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fixdiag

Test for fixed diagonal


Description

Check if an object has fixed diagonal

Usage

fixdiag(x, ...)
fixdiag(x, ...) <- value
## S3 method for class 'ff'
fixdiag(x, ...)
## Default S3 method:
fixdiag(x, ...)
## S3 method for class 'dist'
fixdiag(x, ...)

Arguments

x

an ff or ram object

value

assignement value

...

further arguments (not used)

Details

ff symmetric matrices can be declared to have fixed diagonal at creation time. Compatibility function fixdiag.default returns NULL, fixdiag.dist returns 0.

Value

NULL or the scalar representing the fixed diagonal

Author(s)

Jens Oehlschlägel

See Also

Examples

fixdiag(matrix(1:16, 4, 4))
  fixdiag(dist(rnorm(1:4)))

ff

Memory-Efficient Storage of Large Data on Disk and Fast Access Functions

v4.0.4
GPL-2 | GPL-3 | file LICENSE
Authors
Daniel Adler [aut], Christian Gläser [aut], Oleg Nenadic [aut], Jens Oehlschlägel [aut, cre], Martijn Schuemie [aut], Walter Zucchini [aut]
Initial release
2020-10-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.