I have a dataset with multiple firms and their stock prices on certain dates. I want to create the returns of these stocks across the rows and for all the firms (across columns). My goal is to have the same table as here, only with the returns on the corresponding days and not the stock prices.
