Manipulate real or imaginary components of an object

Description

Manipulate real or imaginary components of an object

Usage

1
2
Im(x) <- value
Re(x) <- value

Arguments

x

Complex-valued object

value

Real-valued object

Author(s)

Robin K. S. Hankin

Examples

1
2
3
4
5
x <- 1:10
Im(x) <- 1

x <- 1:5
Im(x) <- 1/x

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.