Re: [R] error message in having subset

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Mon, 7 Jan 2008 08:42:10 -0500 (EST)


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

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



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 - 13:45:16 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 - 14:00: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