Re: [R] How we can open the results are saved

From: Patrick Burns <pburns_at_pburns.seanet.com>
Date: Mon, 14 Jun 2010 18:57:00 +0100

On 14/06/2010 17:50, jim holtman wrote:
> load('adresse/filename.R')

Or:

attach('adresse/filename.R')

The difference between 'load' and 'attach' is that 'load' puts the contents of the file into your workspace (global environment, first location on the search list), while 'attach' creates a new location on the search list.

But calling this 'filename.R' is likely to lead to trouble. The '.R' suffix is usually used for files containing R commands that can be used by the 'source' function.

The usual convention for files created by 'save' is to use a '.rda' suffix.

Pat

>
>
> On Mon, Jun 14, 2010 at 12:41 PM,<khazaei@ceremade.dauphine.fr> wrote:
>> Hi all
>> I saved the result of my code as a file, like
>>> save(namefunction,file="adresse/filename.R").
>> I want to open the filename. Could you please help me how I can open the
>> filename and see the result.
>>
>> best
>> Khazaei

>>
>> ______________________________________________
>> 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.
>>
>
>
>

-- 
Patrick Burns
pburns_at_pburns.seanet.com
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')

______________________________________________
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 Mon 14 Jun 2010 - 18:05:06 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 Mon 14 Jun 2010 - 19:20:31 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