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

    Function toRows

    • The rows of a data frame as an array of objects, the inverse of fromRows: { age: [30, 41], score: [5, 7] } becomes [{ age: 30, score: 5 }, { age: 41, score: 7 }]. Missing values stay as they are (null, or NaN in a numeric column). Not an R function. R keeps data in data frames and has no need for row objects.

      Parameters

      Returns DataRow[]

      toRows({ id: ["a", "b"], score: [5, null] });   // [{ id: "a", score: 5 }, { id: "b", score: null }]