Re: [R] error message in having subset

From: jim holtman <jholtman_at_gmail.com>
Date: Mon, 7 Jan 2008 07:33:28 -0500

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?

______________________________________________
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.
Received on Mon 07 Jan 2008 - 12:36:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jan 2008 - 13:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive