Hi everyone, I need help to split in two periods a data set of price of equities. So from A1 to An i have the price for each equity (A1 first company, A2 second company etc), from 1 to n, I have the periods. How can I split this sample in two periods?
for (i in 2:nrow(daily_returns)) {
compound = c(compound, compound[i-1] + daily_returns[i])
}
plot(compound, type = "l",main="Let’s give it a try",xlab="# Days",ylab="# Coumpounded performance")
This is not reproducible since we don't have access to your local files, could you please turn this into a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
If you've never heard of a reprex before, you might want to start by reading this FAQ:
I am trying to update the csv file, but I can't.
So basically I have a table in which each column is a company and each line is the return, the table has 1950 lines and 452 column and this is the sample. I have to split in two periods this sample. How can I do it?
There is no need to upload the file, if you want to increase your chances of getting help, read the link I gave you to learn how to include sample data on a copy/paste friendly format.