Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

symmetric

Test for symmetric structure


Description

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

Usage

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

Examples

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

ff

Memory-Efficient Storage of Large Data on Disk and Fast Access Functions

v4.0.4
GPL-2 | GPL-3 | file LICENSE
Authors
Daniel Adler [aut], Christian Gläser [aut], Oleg Nenadic [aut], Jens Oehlschlägel [aut, cre], Martijn Schuemie [aut], Walter Zucchini [aut]
Initial release
2020-10-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.