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.
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, orNaNin a numeric column). Not an R function. R keeps data in data frames and has no need for row objects.