The image is a sample of my data frame. I want to find the sharp rate annualy (252 days per year) for each column individually. enter image description here
I have tried the following: SharpeRatio.annualized(data, Rf = 0, scale = 252, geometric = TRUE).
The problem with this code is that the Rf is already set, but i need it to change in correlation to the selected row-Rf. Im obviously new to the programming-world, and any inputs are much appreciated!