Manipulate real or imaginary components of an object
Im(x) <- value Re(x) <- value
Complex-valued object
Real-valued object
# NOT RUN { x <- 1:10 Im(x) <- 1 x <- 1:5 Im(x) <- 1/x # }
Run the code above in your browser using DataLab