ffill_#

swordfish.function.ffill_()#

If obj is a vector, forward fill the null values in obj with the previous non-null value.

If obj is a matrix or a table, forward fill the null values in each column of obj with the previous non-null value.

Note

The only difference between ffill and ffill_ is that the latter assigns the result to obj and thus changing the value of obj after the execution.

Parameters:
  • obj (Constant) – A vector/matrix/table.

  • limit (Constant) – A positive integer that specifies the number of null values to forward fill for each block of null values.