Learn R Programming

elliptic (version 1.2-2)

misc: Manipulate real or imaginary components of an object

Description

Manipulate real or imaginary components of an object

Usage

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

Arguments

x
Complex-valued object
value
Real-valued object

Examples

Run this code
x <- 1:10
Im(x) <- 1

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

Run the code above in your browser using DataLab