C routine to row-center and scale a matrix. Doesn't work with missing data.
centerscale(A)
A
matrix
matrix same dimensions A but row centered and scaled
centerscale(hgdp_subset)