powered by
helper to generate a matrix mapping from names of M to names of A
data_to_data(M, A)
a matrix