xxxxxxxxxx
let table;
function preload() {
//my table is comma separated value "csv"
//and has a header specifying the columns labels
table = loadTable('https://deckard.openprocessing.org/user3417/visual1613515/h03a5df6fdc9ea06a387d64396591dcb7/variola%20dos%20macacos%20-%20P%C3%A1gina1.csv', 'csv', 'header');
//the file can be remote
//table = loadTable("http://p5js.org/reference/assets/mammals.csv",
// "csv", "header");
}
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
for (let r = 0; r < table.getRowCount(); r++){
for (let c = 0; c < table.getColumnCount(); c++) {
print(table.getString(r, c));
}
}
}
function draw() {
}