http://www.cbsnews.com/media/top-10-priciest-us-cities-to-re...
http://www.fool.com/investing/general/2014/10/12/most-expens...
There are plenty of cheap, low crime places to live within the city limits with access to the subway and local supermarkets etc. They might not be the center of hipsterdom, but they are affordable.
In the Bay Area, Caltrans trains do not go south between midnight and 5AM. Same with BART trains leaving San Francisco. This was a problem when I was out there. New York is not like this - PATH, LIRR, Metro North, and NJ Transit have trains running at all hours. There are plenty of affordable places with a 20 minute commute to Manhattan, and even more within a 25 minute commute, and more within a 30 minute commute etc.
I see people move to NYC, insist on living in a nice part of Manhattan, then complain how expensive their apartment and groceries are and how small their apartment is. There are plenty of nice, cheaper places they could be living if they were willing to be part of the dreaded "bridge and tunnel" crowd.