ff (version 2.2-14)

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, …)

Arguments

x

an ff or ram object

further arguments (not used)

Value

TRUE or FALSE

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
# NOT RUN {
  symmetric(matrix(1:16, 4, 4))
  symmetric(dist(rnorm(1:4)))
# }

Run the code above in your browser using DataLab