Skip to content
Prev 56939 / 398498 Next

as.complex

On Thu, 7 Oct 2004, Erich Neuwirth wrote:

            
R does document that 1i is required, and as.complex uses the same rules 
for entering complex numbers as e.g. using them as part of an arithmetic 
expression.  Consistency is very important in a programming language.

It is easy to change 2+i to 2+1i using sub(), for example.