how to decide a variable to be a factor or integer in regression

340 Views Asked by At

say while predicting the house price variables like the number of bedrooms, bathrooms, floors, condition has a very small range and in integers. should we proceed these variables being integers or need to convert into factors?click here to see the str of dataset price vs bedroom scatter plot