This is absolute gold! Thank you so much for these videos!
@Riffomonas2 жыл бұрын
My pleasure!
@HafeezUrRehman-s2h Жыл бұрын
very informative
@djangoworldwide79252 жыл бұрын
Pat I love your videos but in this one why you didn't use a loop from the get go? I saw all the way to the end but I think it doesn't make much sense to even show that kind of writing instead of mapping over the function or looping
@Riffomonas2 жыл бұрын
Thanks for watching. My goal is to teach people how to program. Here my primary intention was to teach people how to access values in a matrix - not how to write a loop (re-read the title). Along the way, I wanted to help motivate the need for loops. By doing this all brute force it I was able to point out the problem with all the repetition, foreshadow the use of index variables (15:07), etc. I believe the next episode in the series then takes this code and converts it to a loop. There's even an episode that removes for loops entirely. I don't think it's fair to expect someone that has never seen a for loop before to understand the motivation for loops, the concepts, and how to implement them in under 20 minutes. I think I'm serving my audience well with this approach.
@mpadinkale28808 ай бұрын
Good day, my R keeps saying "x" is not found, what could be the issue?
@Riffomonas8 ай бұрын
Hi - I'm not sure where you're getting this error in this episode. Usually that's because you haven't defined x earlier in the script