'How can I insert a row of NULL values at the top of each matrix in DolphinDB?
I want to insert a new row to a matrix so as to solve the problem of array index out of bounds when using a function like prev
in DolphinDB.
Solution 1:[1]
Starting from DolphinDB 1.30.17, when the rowIndex or columnIndex is out of bounds, NULL values will be generated. You can also use the function concatMatrix
to concatenate matrices vertically or horizontally.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | YaN |