I have created multiple dataframes based on various conditions. Now I would like to sample the different dataframes but I would like to remove the lines once they are sampled. I have tried dplyrs sample_n:
sample_n(df, 4)
the problem is that this does not remove the lines, would I need some recursive loop that would remove the lines once they are sampled? Or is there some handy function that can help me?