Now I analyze census data in R. The data structure is nested like this:
City, Block, x1, x2... A, a1, x1_A, x2_a1, A, a2, X1_A, x2_a2, A, a3, X1_A, x2_a3, B,