try casting the pca matrix to object and then aggregate.