Displaying 1 result from an estimated 1 matches for "sample_name".
2014 Apr 30
2
Problem with Renaming R object
Hi,
I have a problem in renaming R object and saving them within a loop. For ex:
for (i in 1:length(all_files))
{
uncov_GR <- "variable created in loop"
filename <- paste0(sample_name[[i]],"_uncov", ".Rdata"))
save(uncov_GR,file=filename)
}
Within the above short code (out of a long program), I want to change the
name of "uncov_GR" variable to the file name and save it by same file name.
But I am unable to come up with any solut...