Group: | Matrix Manipulation |
Topic: | Sorting and Counting |
See also: | list insert delete names comp dot size {} |
Function: | append | |
Description: | Appends an object to the specified list. If the appended object is temporary, the component gets the name el<position>. If the first argument is not a list, it will be changed to a list with itself as first component. |
Usage: | append (l, x) | |
Input: | ||
l | list | |
x | object |
v = 1:3 append(v, 100) array = 1:2 ~ 3:4 append(v, array) v
Content of v.v [1,] 1 [2,] 2 [3,] 3 Content of v.el2 [1,] 100 Content of v.array [1,] 1 3 [2,] 2 4