How do magrittr %>% pipes work exactly? : <p>So for the life of me I can’t understand this extremely simple concept. </p>

<p><a href="https://i.stack.imgur.com/a10jC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a10jC.jpg" alt="take this code for example in this image. "></a></p>

<p>This code looks to me like the code from hell. I was told the pipes are like Russian nesting dolls. Each statement before the pipes apparently feeds into the statement after the pipe. That’s what I was told. So what I don’t understand is first how can this continue to chain on endlessly and second, how does the pipe know where in the next statement the previous statement goes??</p>

<p>Let me take an example... read.csv2 ... %>% select(-x..otu) </p>

<p>And it keeps going on and on from there… How does it know where to put the previous statement or function in the next statement?</p>
