Update StatesA1.R

The original code created a data frame with two versions of the same data frame.

The updated code simply converts the matrix to a data frame.