O'Reilly logo

JMP 11 Scripting Guide, Second Edition, 2nd Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lists
Lists are containers to store items, such as the following:
numbers
variables
character strings
expressions (for example, assignments (see “Assignments with Lists”) or function calls)
matrices
nested lists
Create a list in one of the following ways:
use the List function
use {  } curly braces
Examples
Use the List() function or curly braces to create a list that includes numbers and variables:
x = List(1, 2, b);
x = {1, 2, b};
A list can contain text strings, other lists, and function calls:
{"Red", "Green", "Blue", {1, "true"}, sqrt(2)};
You can place a variable into a list and assign it a value at the same time:
x = {a=1, b=2};
Evaluate Lists
When you run a script that contains a list, a copy of the list is returned. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required