As an international student who made a trip back home, am I a Canadian resident or factual resident even though I was in Canada for more than 183 days for studies?

If I travelled to another province for December-Jan holidays, so I must say that as of Dec 31st I lived in my province because that is my area of residence even though I was out of that province for a visit yes?