TPROJECT

TPROJECT(t) converts table t into a variate, using the values of its classifying factors to determine which value of the table to put into each unit of the variate.