The New York Marathon was canceled Friday in the wake of criticism that the race should not take place as the city struggles to recover from Hurricane Sandy.