NumberOfRows (FPScript)

21.09.2021

Determines the number of rows in a data set.

Syntax

NumberOfRows(DataSet)

 

The syntax of the NumberOfRows function consists of the following parts:

Part

Description

DataSet

The data set for which the number of rows is determined.

All data structures are allowed. All data types are permitted.

Remarks

As the result the function returns a scalar value of data type 64-bit integer.

For a data series, signal or space curve, the function returns the number of values or points. For a data matrix or a signal series, it returns the number of rows. For a data matrix, this corresponds to the number of values of each data series in the data matrix, and for a signal series, the number of points of each signal in the signal series. For a scalar value, it always returns the value 1, and for a list, it returns the number of elements in the list.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Available in

FlexPro View, Basic, Professional, Developer Suite

Examples

NumberOfRows({1, 3, 4})

Results in 3L.

NumberOfRows({1, 3, 4} # 2)

Results in 3L.

NumberOfRows([ [{1, 2}, 2], {1, 3, 4} # 2])

Results in [2L, 3L].

See Also

NumberOfColumns Function

NumberOfElements Function

Rank Function

Shape Function

Share article or send as email:

You might be interested in these articles