I am not particularly proficient with R but I am doing some basic machine learning with kNN in RStudio for my thesis, however, I am confused about a section of the code and hoping someone can clarify.
When establishing the window size, the code looks like this:
"win <- rep(1:736, each = 10)
My lecturer has explained this to me that 'rep()' establishes the size of the window and 'each' establishes the number of repetitions, however, when I run the code I get increased accuracy when reducing 'each' and increasing 'rep()', making me think 'each' might be the window size and 'rep()' may be the number of repetitions. Who's correct here?
Thanks for your help.