I have a vector a=0.01
Then I create a mat<-matrix(data=NA,ncol=10,nrow=10)
I rename the matrix by:
assign(x = paste("mat", a, sep = "_"), value = mat)
The resulting variable will be called mat_0.01
Then I would like to save this variable:
save(mat_'string', file="mat.Rdata")
The question is how to pass the new variable name in the save argument.