Learn R Programming

ff (version 4.5.0)

fixdiag: Test for fixed diagonal

Description

Check if an object has fixed diagonal

Usage

fixdiag(x, ...)
fixdiag(x, ...) <- value
# S3 method for ff
fixdiag(x, ...)
# S3 method for default
fixdiag(x, ...)
# S3 method for dist
fixdiag(x, ...)

Value

NULL or the scalar representing the fixed diagonal

Arguments

x

an ff or ram object

value

assignement value

...

further arguments (not used)

Author

Jens Oehlschlägel

Details

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

See Also

fixdiag, ff , dist

Examples

Run this code
  fixdiag(matrix(1:16, 4, 4))
  fixdiag(dist(rnorm(1:4)))

Run the code above in your browser using DataLab