Introduction to the JMP Scripting Language
Before launching the course, please download and extract the zip file above (intro-to-jsl-journal.zip) for use with the course activities. This course covers a range of scripting...
ruthhummelBefore launching the course, please download and extract the zip file above (intro-to-jsl-journal.zip) for use with the course activities. This course covers a range of scripting...
ruthhummelMany of the operations you perform on data tables require selecting rows. Selecting rows is often necessary for the desired behavior with analysis and...
ruthhummelWhen you send the Get Script message to any JMP object, what's returned to the log is a script that will create an identical object. So this is a grea...
ruthhummelIn addition to the various attributes, data columns have properties associated with them. A column's properties affect how JMP uses it. Examples of co...
ruthhummelData columns can have a variety of attributes associated with them. Your script might need to specify these attributes if it's creating new data colum...
ruthhummelTo send a message to a data column, you have to be able to refer to the column. There are several ways to refer to columns, some of which also return ...
ruthhummelA script often needs to deal with individual data columns and rows. Your variables for analysis are represented by the data columns. The observations ...
ruthhummelOnce your script has imported a data table, or made changes to an existing JMP data table, you probably want to save the table. To do that, you send a...
ruthhummelLet's look at an example. Suppose you have a text file that specifies the column names on the first line and then follows with a row of data on each o...
ruthhummelWhen your data are saved in a computer file that's not a JMP data table, you can import it into JMP in order to create a JMP data table. The original ...
ruthhummelSo here we're going to see how to use scripts to open JMP data tables. So I'll get a new Script Editor window and I'm going to use the pick directory ...
ruthhummelOften, you want the script user to be able to choose a directory or file when the script runs. This is how your script can obtain the absolute file pa...
ruthhummelIn order for your script to open your data table, it has to tell JMP where to find the table. So, you need to understand how file paths work. The path...
ruthhummelWorking with data tables is, of course, an important part of working with JMP. The data table enables JMP to access your data through various analysis...
ruthhummelIn this demonstration, we'll see how to use the match and choose conditional functions. So in the course journal, in section I'm going to click on Con...
ruthhummelIt's common to have conditions that are limited to specific values, and these values could be numeric or character data. You can use the Match functio...
ruthhummelIn this demonstration, we'll take a look at Boolean functions, as well as the If function I'm going to get a script editor window. And again, the keyb...
ruthhummelSo let's look at an example of using the If function. Suppose you have data from a public school in the US with grade levels for each student. Some gr...
ruthhummelThe most general way to test conditions is to use the If function. Let's take a look at it in the context of iterating down the rows of a data table t...
ruthhummelRemember, scripts are procedural. JMP begins by evaluating the first line and continues through until it ends with the last line. This kind of evaluat...
ruthhummelIn this demonstration, we'll see how to iterate across rows using the for each row function. So I'm going to get the Big Class data from the script in...
ruthhummelAnother special case of iteration is the algebraic product. The Product function is similar to the Summation function, and also requires three argumen...
ruthhummelOne special case of iteration is the algebraic sum. The Summation function requires three arguments. The first argument is evaluated before the summat...
ruthhummelSo, you learned about the For function, which you can use for practically any kind of iteration. There's also a special function for iterating down th...
ruthhummelSo this demonstration illustrates how to use the For function for iteration. And so far, we've used the Script Editor with the log to test our scripts...
ruthhummelSo, the Script Editor is a really powerful tool for both reading and writing your scripts. You can also evaluate just one line of code or a selection ...
ruthhummel