This might be a dumb question, but I can't seem to find a solution. I have the following lines of code
name1 <- paste("pred.return.Tr", trainInt, ".Te", testInt, sep = "")
assign(name1, as.data.frame(matrix(, dim(dfVar[1])-NullR, 3, TRUE)))
So now that I have my df created and it's name stored in name1 I am trying to manipulate value and metrics of the data frame. Their are two things I need to do but can't see how. First is to change the column names and second is to have value inputed. I was thinking the following but I get the error could not find function "get<-";
colnames(get(name1)) <- c("Return", "GrossReturn", "CummReturn")
get(name1)[1,1] <- some value
Appreciate the help, pretty sure there is a simple solution. I just can't think of one for some damn reason. I'm new to coding so don't be harsh