I have a dataframe which have one column like this:
> df$stocks
1 stock1
2 stock2
3 stock3
4 stock4
Is there any function which changes randomly the order of rows when I execute it like the first time I execute it the result of the data frame will be:
> df$stocks
1 stock2
2 stock1
3 stock4
4 stock3
The next time will be something different etc.