Re: [R] subsetting problem with multiple criteria: Works in some but not all cases.

2007-11-05 Thread John Kane
Excellent, thank you . --- jim holtman <[EMAIL PROTECTED]> wrote: > You can use apropos to find then and then list out > their help pages: > > > apropos("%") > [1] "%%" "%*%" "%/%" "%in%" "%o%" "%x%" > > > On 11/2/07, John Kane <[EMAIL PROTECTED]> wrote: > > Thank you Jim. That seems to w

Re: [R] subsetting problem with multiple criteria: Works in some but not all cases.

2007-11-02 Thread jim holtman
You can use apropos to find then and then list out their help pages: > apropos("%") [1] "%%" "%*%" "%/%" "%in%" "%o%" "%x%" On 11/2/07, John Kane <[EMAIL PROTECTED]> wrote: > Thank you Jim. That seems to work perfectly. > > I had looked at %in% and apparently misunderstood what > it would

Re: [R] subsetting problem with multiple criteria: Works in some but not all cases.

2007-11-02 Thread John Kane
Thank you Jim. That seems to work perfectly. I had looked at %in% and apparently misunderstood what it would do. Is there any place where I can read on the various %XX% functions? --- jim holtman <[EMAIL PROTECTED]> wrote: > I think the problem is with your use of "==" instead > of "%in%"; t

Re: [R] subsetting problem with multiple criteria: Works in some but not all cases.

2007-11-01 Thread jim holtman
I think the problem is with your use of "==" instead of "%in%"; try matching <- subset(mydata[,c(j+1,j+7)], mydata[,j+1] %in% lone.word) On 11/1/07, John Kane <[EMAIL PROTECTED]> wrote: > I am trying to compare some word lists which have an > associate set of numbers. I want to compare word lis

[R] subsetting problem with multiple criteria: Works in some but not all cases.

2007-11-01 Thread John Kane
I am trying to compare some word lists which have an associate set of numbers. I want to compare word list aa with bb and find only those words which are unique to bb, then compare bb with cc, etc. I thought that I should be able to do this by using setdiff to get the unique words and then subset