Thanks for your help.
On Wed, Apr 30, 2014 at 7:26 PM, Kasper Daniel Hansen <
kasperdanielhan...@gmail.com> wrote:
> save(list = Objectout, file = filename)
>
>
>
>
> On Wed, Apr 30, 2014 at 12:11 PM, Kamal wrote:
>
>> Hi,
>>
>> I have a problem in renaming R object and saving them within a loop
save(list = Objectout, file = filename)
On Wed, Apr 30, 2014 at 12:11 PM, Kamal wrote:
> 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"
> fil
This is not really a question for r-devel, but basically you should use
saveRDS/readRDS rather than save/load.
Hadley
On Wednesday, April 30, 2014, Kamal wrote:
> Hi,
>
> I have a problem in renaming R object and saving them within a loop. For
> ex:
>
> for (i in 1:length(all_files))
>
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)
}
Wit