Navigation :
Envision Tutorials
Envision Explanation
Envision How-To Guides
Lokad Platform
Envision Reference
- Glossary
- Platform overview
- List of icons
-
_
-
A-B-C
-- abs
-- actionrwd.dampen
-- actionrwd.demand
-- actionrwd.reward
-- actionrwd.segment
-- aggregators
-- all
-- and
-- any
-- areSame
-- argfirst
-- arglast
-- argmax
-- argmin
-- arground
-- argwhichever
-- as
-- assert
-- assertfail
-- assoc.quantity
-- at
-- auto
-- autodiff
-- avg
-- barchart
-- boolean
-- Built-in Tables
-- button
-- by
-- canonical
-- cdf
-- ceiling
-- changed
-- chart
-- comments
-- commonPrefix
-- complement
-- concat
-- connected
-- const
-- constant
-- consume
--
contains
-- containsAny
-- containsCount
-- cos
-- count
-- cross
-- crps
-- cuminv
-- cumsub
-- cumsum
-- currentDashUrl
-
D-E-F
-
G-H-I
-
J-K-L
-
M-N-O
-
P-Q-R
-
S-T-U
-
V-W-X
-
Y-Z
Envision Gallery
Envision Specifications
Envision Language
Legacy
argfirst
argfirst, function
def vector argfirst(): boolean
Returns true for the first value of the group according to the ordering. The group is optional; when a group is provided, the function returns true once per group.
Examples
table T = with
[| as N, as G |]
[| 0, "b" |]
[| 3, "a" |]
[| 2, "a" |]
[| 1, "a" |]
T.A = argfirst() sort T.N
T.B = argfirst() by T.G sort T.N
show table "" with
T.N
T.G
T.A
T.B
Output:
N
G
A
B
0
b
true
true
3
a
false
false
2
a
false
false
1
a
false
true
See also