Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.61.0510070853360.22400@vole.fhcrc.org>
Date: 2005-10-07T15:54:34Z
From: Nolwenn LeMeur
Subject: index question
In-Reply-To: <6BCB4D493A447546A8126F24332056E8F28BAE@school1.business.edu>

Hi,
how about group.label.new[c(junk,8:10)]

Nolwenn  

**************************************
Nolwenn Le Meur, PhD
Fred Hutchinson Cancer Research Center
Computational Biology
1100 Fairview Ave. N., M2-B876
P.O. Box 19024
Seattle, WA 98109-1024

On Fri, 7 Oct 2005, Afshartous, David wrote:

> 
> 
> All,
> I'm having a problem selecting directly from a vector.  I've written ways to do this
> indirectly, but I'd rather do it directly and didn't see this in the manual.
> 
> Essentially, I have:
> 
> > group.label.new
>  [1]  7  9  6  1 10  4  8  3  2  5
> > junk
> [1] 1 2
> > group.label.new[junk && 8:10]
>  [1]  7  9  6  1 10  4  8  3  2  5
> 
> I'd like to select the elements indexed by "junk" and also the 8th through 10th elements, which
> clearly isn't the result I'm getting.  Any help appreciated, and please reply directly to 
> afshar at miami.edu
> 
> cheers,
> dave
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>