[R] error message in having subset

jim holtman jholtman at gmail.com
Mon Jan 7 13:33:28 CET 2008


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 <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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?




More information about the R-help mailing list