Reputation: 4135
Let's say I have an empty p5 data table:
data = new p5.Table();
data.columns = ['x','y']
How do I add data to this table?
Upvotes: 0
Views: 75
Reputation: 4135
The way that can be found on the docs is as follows:
let newRow = data .addRow();
newRow.setNum('x', 12);
newRow.setString('name', 'cool string');
I wonder if anybody knows a direct way by adding paramaters to the addRow
function?
Upvotes: 1