
Last chance! 50% off unlimited learning
Sale ends in
Check if an object is inherently symmetric (its structure, not its data)
symmetric(x, ...)
# S3 method for ff
symmetric(x, ...)
# S3 method for default
symmetric(x, ...)
# S3 method for dist
symmetric(x, ...)
TRUE or FALSE
an ff or ram object
further arguments (not used)
Jens Oehlschlägel
ff matrices can be declared symmetric at creation time. Compatibility function symmetric.default
returns FALSE, symmetric.dist
returns TRUE.
symmetric
, ff
, dist
, isSymmetric
symmetric(matrix(1:16, 4, 4))
symmetric(dist(rnorm(1:4)))
Run the code above in your browser using DataLab