Re: [R] Problems saving an Object called by get

From: Luis Felipe Parra <felipe.parra_at_quantil.com.co>
Date: Wed, 27 Apr 2011 11:59:53 +0800

Sorry David, I understand what you mean but could you help with how it would be done more specifically.

Thanks

On Wed, Apr 27, 2011 at 11:27 AM, David Winsemius <dwinsemius_at_comcast.net>wrote:

>
> On Apr 26, 2011, at 7:37 PM, Luis Felipe Parra wrote:
>
> Hello. I am trying to save an object which I created using assign as
>> following:
>>
>> assign(paste(NombreAlgoritmo,"_Portafolio",sep=""),PortafolioInicial)
>>
>> save(get(paste(Algoritmo,"_Portafolio",sep="")),file=paste(camino,"\\Libreria\\Portafolio\\Port_",NombreAlgoritmo,"\\",NombreAlgoritmo,"_Portafolio.Rdata",sep=""))
>>
>> but I am getting the following error:
>>
>> Error in save(get(paste(NombreAlgoritmo, "_Portafolio", sep = "")), file =
>> paste(camino, :
>> object 'get(paste(NombreAlgoritmo, "_Portafolio", sep = ""))' not found
>>
>> Does anybody know how can this be done?
>>
>>
> You need to save the names rather than the "got"()-ten objects.
>
>
> --
> David Winsemius, MD
> West Hartford, CT
>
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 27 Apr 2011 - 04:03:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Apr 2011 - 11:00:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive