[R] error message in having subset

2008-01-07 Thread temiz
hello I want to have subset of my dataset that is equal to 0. But, I got this error message. > hs2=hs[hs$hey60==0 ,] Error in hs[hs$hey60 == 0, ] : (subscript) logical subscript too long regards -- This message has been scanned for viruses and dangerous content by MailScanner, and is believe

Re: [R] error message in having subset

2008-01-07 Thread jim holtman
Can you either provide a subset of data or at least do 'str(hs)' so that we know what the structure of you data looks like. It could be a matrix, dataframe, list, Each makes difference in how it is handled. On Jan 7, 2008 8:47 AM, temiz <[EMAIL PROTECTED]> wrote: > hello > > I want to have

Re: [R] error message in having subset

2008-01-07 Thread John Kane
perhaps ?subset subset(hs, hs$hey60==0) --- temiz <[EMAIL PROTECTED]> wrote: > hello > > I want to have subset of my dataset that is equal to > 0. But, > I got this error message. > > > hs2=hs[hs$hey60==0 ,] > Error in hs[hs$hey60 == 0, ] : (subscript) logical > subscript too long > > > rega