JMP 14.2 联机文档
发现 JMP
使用 JMP
基本分析
基本绘图
刻画器指南
实验设计指南
拟合线性模型
预测和专业建模
多元方法
质量和过程方法
可靠性和生存方法
消费者研究
Scripting Guide
JSL Syntax Reference
该帮助的版本不再更新,请参见
https://www.jmp.com/support/help/zh-cn/15.2
获取最新的版本.
Scripting Guide
•
Data Structures
•
Lists
• Insert a Nested List in an Existing List
上一个
•
下一个
Insert a Nested List in an Existing List
To insert a nested list in an existing list, specify the placement of the list as follows:
list2 = {{
"a"
,
"b"
}, {
"c"
,
"d"
}};
list2[
3
] = {
"apple"
,
"banana"
};
// specify a list as the third item
Show
( list2 );
list2 = {{"a", "b"}, {"c", "d"}, {"apple", "banana"}};
If you do not know the number of items in a list, use
N Items()
. In this example, an empty list is inserted at the end of the list.
list1 = {
"a"
,
"b"
};
list1[
N Items
( list1 ) +
1
] = {};
Show
( list1 );
list1 = {"a", "b", {}};