Hi, I tried to enter code as follow:
ret_df_1 <- mutate_all(ds_cls_1[,‐1], cal_return)
ret_df_1 <- mutate(ret_df_1, Date= ds_cls_1$Date) %>% select(Date, everything()) ret_df_1; head(ret_df_1,3); tail(ret_df_1,3)
But it said there is unexpected symbol in "ret_df_1 <- mutate(ret_df_1, Date= ds_cls_1$Date) %>% select(Date, everything()) ret_df_1", I can't figure where's the unexpected symbol is.