He stated that his own situation within the residence was that he was a part-time resident who had gotten an apartment with friends but spent a lot of time at home.
In New York, as in most other states, a person can be deemed a resident either by being domiciled in the state or by maintaining a residence in the state for most or all of the year and spending the requisite number of days in the state.
If you have a permanent place of abode in New York (even though it is not your primary residence) and spend more than 183 days in New York, you are a statutory resident of New York, regardless of your domicile.