From John.Peters@tip.csiro.au  Sun Feb 21 23:12:12 1999
From: John.Peters@tip.csiro.au (John.Peters@tip.csiro.au)
Date: Mon, 22 Feb 1999 00:12:12 +0100
Subject: scan rejects complex (PR#125)
Message-ID: <199902212312.AAA19317@biostat.ku.dk>


"Scan" does not currently accept mode "complex".  (Splus3.4 does).
The help file does not make plain the intention.
Version is 0.632.

#----------------------------------------
xx_1+2i
cat(xx,file="testfile1")

yy_scan("testfile1",what=complex()) 

print(yy)
print(mode(yy))

# Says: Error: "scan" invalid "what=" specified
# yy_as.complex(scan("testfile1",what=character())) # workaround
#----------------------------------------

Many thanks.

----------------------------------------------------------------------------
John Peters
CSIRO National Measurement Laboratory
PO Box 218                                Phone:    +61 2 9413 7503
Lindfield NSW 2070                        Fax:      +61 2 9413 7202
Australia                                 Internet: John.Peters@tip.CSIRO.AU
----------------------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


scan rejects complex (PR#125)
John.Peters@tip.csiro.au