function resu = fold(df, S, RHS) The purpose is to fold a dataframe. Part from (1:indr-1) doesn't move, then content starting at indr is moved into the second, third, ... sheet. To be moved, there must be equality of rownames, if any, and of fields contained in indc.
Package: dataframe