I don't know if what I try to do is possible! I have a matrix of values (Var_sim) and I convert it as an ff object. The name of this object is created with "paste". Now I want to use this object in the function ffload, this is my code:
Variables[k] = TEMP
Cell_number[i] = 4095
selected_domains = 1
assign(paste("Mat_",Variables[k],"_",Cell_number[i],"_",selected_domains[j],sep=""),as.ff(Var_sim))
Here I have the variable Mat_TEMP_4085_1 as an ff object. I am using that in a loop so I will have various ff objects with various names (different cell_number).I need to use Mat_TEMP_4085_1 (and the others) in a function but I can't just write the name:
ffsave(as.name(paste("Mat_",Variables[k],"_",Cell_number[i],"_",selected_domains[j],sep="")), file="Test")
I have the following error:
Error in ffsave(as.name(paste("Mat_", Variables[k], "_", Cell_number[i], :
objet ‘as.name(paste("Mat_", Variables[k], "_", Cell_number[i], "_", selected_domains[j], sep = ""))’ not found
It doesn't recognize the variable. How can I do?