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

symmetric(x, ...)
# S3 method for class 'ff'
symmetric(x, ...)
# Default S3 method
symmetric(x, ...)
# S3 method for class 'dist'
symmetric(x, ...)

Arguments

x

an ff or ram object

...

further arguments (not used)

Details

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

Value

TRUE or FALSE

Author

Jens Oehlschlägel

See also

symmetric, ff , dist, isSymmetric

Examples

  symmetric(matrix(1:16, 4, 4))
#> [1] FALSE
  symmetric(dist(rnorm(1:4)))
#> [1] TRUE