jmp-l
[Top] [All Lists]

Re: How to generate a Matrix from an Excel file by JSL

To: jmp-l@lists.biostat.wustl.edu
Subject: Re: How to generate a Matrix from an Excel file by JSL
From: "Mr. Wayne J. Levin" <levin@predictum.com>
Date: Sun, 8 Feb 2009 17:56:06 -0500
In-reply-to: <25e89e790902081452w5591ca42nb0e401e02d68b277@mail.gmail.com>
References: <25e89e790902071631w2df2c3faya6df98c2a92cb02@mail.gmail.com> <EFE76F0C-80A7-4C8A-BC09-E0C149D86452@aol.com> <25e89e790902080727u4400f4am2866f419bf4bc1ca@mail.gmail.com> <563A7B71-7A47-4363-BE13-D1A4B620676D@aol.com> <25e89e790902081452w5591ca42nb0e401e02d68b277@mail.gmail.com>
I think if you follow Mark's advice,  dt << Get as Matrix _expression_ will simply ignore the character columns.

Did you try that? 

If it doesn't work - you could always import the spreadsheet into JMP - then loop through the columns looking at the Column Types and delete those that are not numeric.

JSL is a  journey! :)

Wayne

On 8-Feb-09, at 5:52 PM, Fred Zhang wrote:

Thanks, Mark.
 
But in my data table, there are some attribute and character columns,
so I need to extract the subset (some columns and rows) of the table to produce
a pure numeric matrx.
In your scheme, I need to do the above in "SOL string" by selecting the columns?
 
Also, what is "DNS string"?
 
Best regards,
Fred

On Sun, Feb 8, 2009 at 11:58 AM, Mark Bailey <mark4flies@aol.com> wrote:
Schematically:

dt = Open Database(
"DNS string",
"SQL string"
);

m = dt << Get As Matrix;

That's about it. Well, at least as far as you have described the problem!

Best of luck.

Mark

On Feb 8, 2009, at 10:27 AM, Fred Zhang wrote:

All these operations can be done by JMP Script language?
Any example to demonstrate this function?

Mark

They hate you if you're clever, and they despise a fool ("Working Class Hero" - John Lennon)

=


<Prev in Thread] Current Thread [Next in Thread>