## How to modify a variable inside a function in R

Working on a Machine Learning Assignment in which I needed to implement Stochastic Gradient Descent (_SDG_) for logistic regresion I faced the folowing problem.

Working on a Machine Learning Assignment in which I needed to implement Stochastic Gradient Descent (_SDG_) for logistic regresion I faced the folowing problem.