Learn R Programming

ff (version 4.5.0)

symmetric: Test for symmetric structure

Description

Check if an object is inherently symmetric (its structure, not its data)

Usage

symmetric(x, ...)
# S3 method for ff
symmetric(x, ...)
# S3 method for default
symmetric(x, ...)
# S3 method for dist
symmetric(x, ...)

Value

TRUE or FALSE

Arguments

x

an ff or ram object

...

further arguments (not used)

Author

Jens Oehlschlägel

Details

ff matrices can be declared symmetric at creation time. Compatibility function symmetric.default returns FALSE, symmetric.dist returns TRUE.

See Also

symmetric, ff , dist, isSymmetric

Examples

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

Run the code above in your browser using DataLab