drop function

Drop zero imaginary parts of an onionic vector

Drop zero imaginary parts of an onionic vector

If an onion has zero imaginary part, drop it

## S4 method for signature 'onion' drop(x)

Arguments

  • x: onion

Details

Generally, drop means coercion of an object to a less general type without loss of information. In many contexts, function drop() means to lose redundant information. This is not done by default (doing so would result in unexpected coercions).

Methods are given for onion and onionmat objects.

Author(s)

Robin K. S. Hankin

Examples

a <- rsoct() a a-Im(a) drop(a-Im(a))
  • Maintainer: Robin K. S. Hankin
  • License: GPL-2
  • Last published: 2024-03-29