Group: | Matrix Manipulation |
Topic: | Sorting and Counting |
See also: | [] dot list size |
Function: | {} | |
Description: | {} gives an element of a list. |
Usage: | y = x{n} | |
Input: | ||
x | list | |
n | integer, number of an element of x | |
Output: | ||
y | element of x with number n |
Another kind to select an element is with the name and the dot-operator.
x1=#(1,3)~#(3,1) x2=4:6 y=list(x1,x2) y{1}
Contents of x1 [1,] 1 3 [2,] 3 1