For loop and while loop are very important in any programming specially R.
In while loop, we need to initialize one variable and then implement one breaking condition with in the loop.
We can use break to terminate the while loop and NEXT to skip any iteration.
For loop is very comparatively simple than while loop. No need to initialize any variable and condition within the loop.
We can also use break and next statement with in the for loop.
It is also possible to implement nested for loop. For complete courses, you can buy these courses from Udemy on discount using the following links
https://www.udemy.com/course/ssas-tab...
https://www.udemy.com/course/power-qu...
https://www.udemy.com/course/microsof...
https://www.udemy.com/course/power-bi...
https://www.udemy.com/course/learn-al...
Skillshare users can follow me on Skillshare for all the courses!
https://www.skillshare.com/r/profile/...