Function to verify existence of an R object

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Function to verify existence of an R object

Judith Flores
Hello,

   is there a function to check if an object exists?

Thank you,

Judith

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Function to verify existence of an R object

Bert Gunter
Please do your homework before posting: help.search("exists") --> ?exists

-- Bert Gunter

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Judith Flores
Sent: Wednesday, July 16, 2008 3:27 PM
To: RHelp
Subject: [R] Function to verify existence of an R object

Hello,

   is there a function to check if an object exists?

Thank you,

Judith

______________________________________________
[hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Function to verify existence of an R object

Duncan Murdoch
In reply to this post by Judith Flores
On 16/07/2008 6:26 PM, Judith Flores wrote:
> Hello,
>
>    is there a function to check if an object exists?

exists("foo") checks for foo.  (There are a few other optional
parameters to tell it where to look, and what sort of thing foo might be.)

Duncan Murdoch

>
> Thank you,
>
> Judith
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: Function to verify existence of an R object

Earl F. Glynn
In reply to this post by Judith Flores
"Judith Flores" <[hidden email]> wrote in message
news:[hidden email]...

>   is there a function to check if an object exists?

?exists

efg

Earl F Glynn
Stowers Institute for Medical Research

______________________________________________
[hidden email] 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.