Learn R Programming

ff (version 2.2-14)

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, …)

Arguments

x

an ff or ram object

value

assignement value

further arguments (not used)

Value

NULL or the scalar representing the fixed diagonal

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
# NOT RUN {
  fixdiag(matrix(1:16, 4, 4))
  fixdiag(dist(rnorm(1:4)))
# }

Run the code above in your browser using DataLab