getResultsTable function

Get results table from a study