In the realm of data analysis, R has carved out a niche as a powerful tool for statisticians, data scientists,…