When U.S. officials began collecting consumer complaints about credit cards, one goal was to identify patterns that could help them write rules protecting families with low and moderate incomes.

Nearly two years later, it’s the well-to-do neighborhoods of Florida and New York that are supplying the most grievances to the Consumer Financial Protection Bureau, an analysis of agency data shows.