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...
ruthhummelExpressions are an important concept, and an integral part of the JMP scripting language. But what is an expression? Well, it's a section of JSL code ...
ruthhummelAnother way to iterate is with the While function. This function takes only two arguments: the test, and the body. So, if you want to use a counter, i...
ruthhummelSo, the For function provides the most general form of iteration. This function has four required arguments, and each one is a JSL expression. And as ...
ruthhummelScripts are procedural. In other words, JMP evaluates a script beginning with the first line and continuing until the last line. Some scripts require ...
ruthhummelSo, although your scripts follow a strict syntax, there's no strict style imposed by JMP in the scripting language. Remember that JMP ignores whitespa...
ruthhummelYou can use the Matrix function to create a matrix. And this function takes a list of lists as its argument, where each sub-list specifies a row. You ...
ruthhummelAnother useful data structure is a matrix, which is a rectangular array or table of numeric values or missing values. You can use a matrix to store a ...
ruthhummelLists are dynamic. You can easily add items to or remove items from a list as necessary. You use the Insert function or the Insert Into function to ad...
ruthhummelAn important data structure in JMP is a list, which is a general-purpose storage container that can store any number of items. The items can be any ty...
ruthhummelNow let's discuss the concept of objects. Many of the capabilities of JMP are available to your script through built-in objects. Every JMP object know...
ruthhummelSo we've been making use of the log to look at the results of all of the lines of code that we've run. But we can also control what shows up in the lo...
ruthhummelSo next, let's talk a little bit about date and time functions. I'm going to clear the contents of the Script Editor window. I'd like to clear the log...
ruthhummelWell now, let's take a quick look at local variables and using the local function. So I'm going to clear the contents of the Script Editor and I'm goi...
ruthhummelNext, let's talk about comments. It can be really helpful to include comments in your scripts. Comments aren't executed when the script runs, so they ...
ruthhummelNow let's talk about punctuation in your scripts. Commas separate items-- they separate items in lists, rows in matrices, and arguments in a function ...
ruthhummelSome data are text that are represented by character strings. Character strings are delimited by double-quotation marks, and these delimiters are not ...
ruthhummelNumbers are an essential form of data, and can be expressed as integers, decimals, or in scientific notation. Dates and times are also represented by ...
ruthhummelSo, it might surprise you to learn that every script is actually a single function along with its arguments. And it might seem at first like this requ...
ruthhummelFunctions are a vital element of the scripting language, so let's discuss them. You call a function when you need it, and every function returns a res...
ruthhummelOK, so let's look at a few examples of creating variables. Suppose you want to create a variable named a, and you want to assign the value of to it. T...
ruthhummelOK, so now let's talk about variables. You can use variables to store values that aren't constant from one time a script runs to another. These values...
ruthhummelNames are important in JMP, and especially in scripting. In fact, everything in JMP has a name! This includes objects, menu commands, functions, and m...
ruthhummelIn order to write your own scripts, you need to familiarize yourself with the elements that a script can contain: names, variables, functions and oper...
ruthhummelSo this demonstration, we'll look at the various ways that you can create and save JMP scripts. So I'll begin by interactively creating a new column w...
ruthhummelA great feature of JMP is that it can generate a script for you from an existing object, like a data table or an analysis platform. This can be really...
ruthhummel