fixdiag: Test for fixed diagonal

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Check if an object has fixed diagonal

Usage

1
2
3
4
5
6
7
8
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

fixdiag, ff , dist

Examples

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

OHDSI/ff documentation built on May 7, 2019, 8:30 p.m.