Displaying 1 result from an estimated 1 matches for "objectout".
Did you mean:
objecto
2014 Apr 30
2
Problem with Renaming R object
...I am unable to come up with any solution to do so.
I tried something like the code below:
for (i in 1:length(all_files))
{
uncov_GR <- "variable created in loop"
filename <- paste0(sample_name[[i]],"_uncov", ".Rdata"))
Objectout <- paste0(sample_name[[i]],"_uncov")
assign(Objectout, uncov_GR)
save(Objectout,file=filename) ### problem still persists with
saving
}
Here I am able to make a copy of uncov_GR but I am unable to save the
object again with the same filename. Any suggesti...