unique

From DavinciWiki
Revision as of 14:37, 13 January 2008 by Keith (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


64-bit SafeYes

Citation

  • misc.dvrc

Description

Retrieve unique values from a numerical array or a TEXT array. Returns sub-arrays based on the uniqueness of values in individual rows or columns.

Arguments and Return Values

Arguments: 2-d numerical array, or TEXT array and an optional sub-array used to select unique values.

Return Value: Unsorted unique values or sub-arrays from the input array.

Usage

Syntax: unique(object=VAL

Examples

TEXT[, by=VAL

Images

TEXT])

input - a one dimensional numerical array with the data on any axis.

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

dv> a=create(10,1,1,start=1)
10x1x1 array of int, bsq format [40 bytes]
1       2       3       4       5       6       7       8       9       10
 
dv> b=create(10,1,1,start=5)
10x1x1 array of int, bsq format [40 bytes]
5       6       7       8       9       10      11      12      13      14

dv> c=cat(a,b,axis=x)
20x1x1 array of int, bsq format [80 bytes]
1       2       3       4       5       6       7       8       9       10      
5       6    7     8       9       10      11      12      13      14

dv> d=uniq(c)
14x1x1 array of int, bsq format [56 bytes]
1       2       3       4       5       6       7       8       9       10      11      12    13      14


Recent Core Changes

Modified On: 10-01-2009

Personal tools