To reduce variables, there are different techniques like Stepwise Regression, Forward Selection, Backward Elimination. if you use stepAIC function and pass linear model lm as parameter then it will produce the final reduced set of features. it also takes care of multicollinearity.

you may refer this link to know how stepAIC works:

https://ashutoshtripathi.com/2019/06/10/what-is-stepaic-in-r/

Certified Data Scientist. Technical Content Creator. Follow me on instagram.com/ashutosh_ai/, linkedin.com/in/ashutoshtripathi1/, blog @ ashutoshtripathi.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store