One more detail - readcsv returns boxed data, but if it is really
numeric, there is no need to leave it boxed. For example:
readcsv 'temp/t1.csv'
+--------+---+
|20080102|147|
+--------+---+
|20080104|197|
+--------+---+
|20080106|173|
+--------+---+
|20080108|177|
+--------+---+
|20080109|152|
+--------+---+
0 ". &> readcsv 'temp/t1.csv'
20080102 147
20080104 197
20080106 173
20080108 177
20080109 152
plot ;/ |: 0 ". &> readcsv 'temp/t1.csv'
Hahn, Harvey wrote:
While awaiting an answer to my previously posed question, I thought I'd
tried to see if I could at least get a simple plot without the "fancier"
date-related aspects. So I entered the following into a J window:
===========================================
require 'stdlib files csv strings dates plot'
data =: readcsv 'c:\bloodtest.txt'
'x y'=. |:data
pd 'reset'
pd 'title Blood Glucose Data'
pd y
pd 'show'
|option not found: 147: signal
| signal'option not found: ',j
y
147
197
173
177
152
===========================================
I typed "y" so that you could see the 5 values (from the boxed array)
that I'm trying to plot. As a matter of fact, here's the file
"bloodtest.txt", if you want to try the code above yourself:
20080102,147
20080104,197
20080106,173
20080108,177
20080109,152
I haven't the foggiest what "option not found: 147: signal" is trying to
tell me. Can someone clue me in as to what I'm doing wrong? I tried to
copy the "Gold Fixed Price" demo example as closely as possible, just
leaving out the date-related lines of code. Thanks for any help!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm