[R] obtaining the index

David Winsemius dwinsemius at comcast.net
Sat Mar 27 14:36:15 CET 2010


On Mar 27, 2010, at 6:35 AM, arindam fadikar wrote:

> I have a vector with entries 0 and 1.  I want the positions for  
> which the
> entries are 1.

?which

>
> - arindam fadikar
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list