get.one {RGeoS} | R Documentation |
Returns one element from an array
get.one(tab, rank, ntab)
tab |
Input array of values |
rank |
Rank of the element in the array |
ntab |
Number of expected values in the array |
When the input array is missing, it is generated as the sequence of values from 1 to ntab. When an input array is provided, its length is compared to the argument ntab. If its length is larger than ntab, the input array is truncated to the ntab first elements. It its length is smaller than ntab, the input array is repeated until the dimension ntab is reached. Then the 'rank'-th value of the array is returned.
The 'rank'-th element of the input array