[R] error message in having subset

John Kane jrkrideau at yahoo.ca
Mon Jan 7 14:42:10 CET 2008


perhaps ?subset
subset(hs, hs$hey60==0)

--- temiz <temiz at deprem.gov.tr> 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
> 
> 
> regards
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> ______________________________________________
> 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.
> 



      Looking for the perfect gift? Give the gift of Flickr!




More information about the R-help mailing list