symmetric: Test for symmetric structure

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

Description

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

Usage

1
2
3
4
5
6
7
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(s)

Jens Oehlschlägel

See Also

symmetric, ff , dist, isSymmetric

Examples

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

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