rStats.js v1.3.0
    Preparing search index...

    Function rbind

    • Combine vectors and matrices as rows. Equivalent to R's rbind(). Given data frames (objects of columns), stacks their rows, as R's rbind() of data frames: all must have the same column names, matched by name (the result has the first frame's column order).

      Parameters

      Returns number[][]

      rbind([1, 2], [3, 4]);           // [[1, 2], [3, 4]]
      rbind([[1, 2], [3, 4]], [5, 6]); // [[1, 2], [3, 4], [5, 6]]
    • Combine vectors and matrices as rows. Equivalent to R's rbind(). Given data frames (objects of columns), stacks their rows, as R's rbind() of data frames: all must have the same column names, matched by name (the result has the first frame's column order).

      Parameters

      Returns DataFrame

      rbind([1, 2], [3, 4]);           // [[1, 2], [3, 4]]
      rbind([[1, 2], [3, 4]], [5, 6]); // [[1, 2], [3, 4], [5, 6]]