1010data Insights Platform offers a rich set of functions that may be used in value expressions when creating computed columns and in selection expressions when performing row selections.
List functions are scalar functions that return lists, subsets of lists, and combinations of lists, among other functionality. Lists, along with packages, are compound scalar data types that facilitate programmatic interaction with scalar data values and variables.
1010data provides a whole range of functions that can provide information and act on your data.
The time/date functions are vector functions that operate on columns containing time-related data and return specific information about the date/time for each row.
Group functions, or g_functions, are used to perform operations, such as summarizations, on rows that have the same values in a set of given columns.
Math functions are vector functions that perform mathematical operations on one or more columns and return a column of results based on the operation.
Categorization functions are vector functions that organize data and determine logical groupings. These functions can be used for conditionalizing results and/or bucketing value ranges.
String functions are vector functions that manipulate vectors of strings to provide information about a string or substring, concatenate and split strings, or transform strings based on specified criteria.
conjsel(L)
Returns a selection expression that consists of the conjunction of the pairs of columns and associated values specified in the given list-value. (Available as of version 11.06)
dejson(S;O)
Converts a JSON string into 1010data values. (Available as of version 11.07)
dexml(S;O)
Converts an XML string into a 1010data XML value or list of values (str → xml). (Available as of version 11.07)
str → xml
encsv(X;FD;RD;QC;O)
Converts a table or query value X into CSV or other delimiter-separated text. (Available as of version 19.77)
X
enjson(V;O)
Converts values, including packages and lists, into a JSON string. (Available as of version 11.07)
enxml(V;O)
Converts a 1010data XML value, or a list of values, into an XML string (xml → str). (Available as of version 11.07)
xml → str
exlst(L;E)
Remove the contents of list-value E from list-value L.
E
L
inlst(L1 L2...LN)
Find the intersection of two or more list-variables.
jnlst(L1 L2...LN)
Returns a single list-value made up of the elements of multiple lists.
lst(X)
Returns a single, indexed list-value when given one or more values.
lst_del(L;D)
Remove the elements in list-value L at the index positions specified in list-value D.
D
lst_drop(L;N)
Returns a list-value of all elements after a given element.
lst_len(L)
Returns the number of elements in a list-value.
lst_pick(L;I)
Find the value of an element in a list-value from a specified index position.
lst_position(L;P)
Find the index positions of values in list-value L for values that appear in list-value P.
P
lst_remove(L;R)
Remove elements from list-value L that are found in list-value R. This function does not remove duplicates that appear multiple times in list-value L from the returned list-value.
R
lst_reverse(L)
Invert the order of the elements of a list-value.
lst_take(L;N)
Returns a list-value containing a given number of elements.
lst_to_pkg(K;V)
Returns a new package value by accepting a list of keys and a list of values of equal lengths.
lst_to_str(L;D)
Returns a delimiter-separated string comprised of the elements in a list-value.
mklst(N;X)
Returns a single, indexed list-value containing multiple instances of the given value.
param(M;P;I)
Returns the numerical value of a particular model parameter extracted from a discrete or continuous model.
pkg(K;V)
Returns a single, indexed list-value containing key-value pairs.
pkg_.contains(P;K)
Returns a boolean indicating whether package P contains key K (a string).
K
pkg_.merge(P1;P2)
When applied to a package, returns a new package that is the union of P1 and P2, with the values of P2 taking precedence.
P1
P2
pkg_.update(P1;P2)
pkg_.without(P;K)
When applied to a package, returns a copy of package P without key(s) K (a string or lst() of strings).
lst()
pkg_default(P;K;D)
Returns a value from a package at a given key position, or returns a default value if the value is invalid. (Available as of version 15.03)
pkg_get(P;K)
Returns a value from a package at a given key position.
pkg_names(X)
Returns a single, indexed list-value containing the key values from a specified package variable.
qv(X)
Returns a properly quoted and escaped string for insertion in Macro Language code.
str_to_lst(S;D)
Returns a list-value from a delimiter-separated string.
table(P;)
Produces a table value from a dictionary.
unlst(L1 L2...LN)
Find the union of two or more list-values.
Data-handling functions are vector functions that return a hash value based on an input column or columns.
Row functions are vector functions that return computational outputs for row inputs, as opposed to column outputs. Row inputs are defined as a space- or comma-separated list of column names.
SQL compatibility functions are functions that treat null values as SQL nulls.
System functions are special functions in 1010data that return information about users, tables, and other system objects.
The object functions can be used to check the existence, type, and accessibility of objects such as folders, tables, and queries on the 1010data Insights Platform.
This category of functions contains special functions that don't neatly fit into other categories of functions.