Creating a Crosstab

From Q
Jump to navigation Jump to search

// Working on Phone.sav, this creates a new crosstab of Age by Gender.
var t = project.report.appendTable();
t.primary = project.dataFiles[0].getQuestionByName('Age');
t.secondary = project.dataFiles[0].getQuestionByName('Gender');

See also