Re: [R] if a variable is defined

2011-02-10 Thread Bill.Venables
!is.null(my.obj...@my.data.frame$my.var) -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Kushan Thakkar Sent: Friday, 11 February 2011 10:30 AM To: r-help@r-project.org Subject: [R] if a variable is defined I have an object type

[R] if a variable is defined

2011-02-10 Thread Kushan Thakkar
I have an object type my.object. One of its slots contains a data frame (i.e. my.obj...@my.data.frame) .. I want to check if one of the variables exists in this data frame (i.e. my.obj...@my.data.frame$my.var) I am trying to use the exists function but can't figure out how the arguments work. Plea