Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!utnut!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!gatech!gsusgi1.gsu.edu!gsusgi1.gsu.edu!qmdbms
From: qmdbms@gsusgi2.gsu.edu (Brian Schott)
Subject: Re: jfaq (page 2 draft)
Message-ID: <qmdbms.733246406@gsusgi1.gsu.edu>
Organization: Georgia State University
References: <1993Mar27.113042.19549@csus.edu>
Date: Sat, 27 Mar 1993 15:33:26 GMT
Lines: 23


Emmett, 

	Your FAQ2 ideas are very good. 
	Could I suggest an idea that I used often to send output to a
spreadsheet program to be graphed? If the data array is rank 2 and is
numeric, then I was able to use the following routines to produce "tab"
delimited values for which the dash indicates negative numbers (not the
underline). I might add that this is not a polished routine. For example,
it creates a last line which is empty. But it gives the desired results. 


tab=. 9{a.
lf=. 10{a.
cs=.{&('-',a.)&(('_',a.)&i.)
clean =. cs@,&lf@;"1 @: (,&tab @ ": &. >)

An example usage would be as follows.

a =. _3 + i. 3 5
(, clean a) 1!:2 <'outfile'

(B=)
