New York Laws
Title 2 - Canvass by Board of Elections
9-208 - Provisions for Recanvass of Vote in Every Election District in the State; Procedure in Case of Discrepancy.

(b) For the purposes of this section, the term margin of victory shall
mean the margin between all votes cast in the entire contest following
the recanvass of votes.
(c) Where the contest involves portions of two or more counties, the
margin of victory shall be determined by the state board of elections
based on the most recent recanvass results for the contest submitted by
the boards of elections of the counties involved.
(d) The result of the manual recount of ballots shall supersede the
returns filed by the inspectors of election of the election district in
which the canvass was initially made.