csl_len(X)
Returns the number of elements in a given comma-separated list.
Function type
Scalar or vector
Syntax
csl_len(X)
Input
Argument | Type | Description |
---|---|---|
X |
text | A comma-separated list or the name of a column containing a comma-separated list |
Return Value
Returns an integer value corresponding to the number of elements in the comma-separated
list X
.
If X
is N/A, the result is 0.
Sample Usage
csl_list |
csl_len(csl_list) |
---|---|
'dog,cat,bird,horse,hippo,duck' | 6 |
'' | 0 |