Re: [R] Conditionally Removing data from a vector

2008-11-21 Thread Philipp Pagel
> DEVS should equal 6 values the last being 620, like the data frame: >CANDS DEVS > > [1,] 100 120 > > [2,] 101 220 > > [3,] 102 320 > > [4,] 103 420 > > [5,] 104 520 > > [6,] 105 620 > > And yes, my first question is do i need a "if" statement at all as the which >

Re: [R] Conditionally Removing data from a vector

2008-11-21 Thread PDXRugger
I greatly apoligize, clear in my own mind, just didnt explain well enough. DEVS should equal 6 values the last being 620, like the data frame: CANDS DEVS > [1,] 100 120 > [2,] 101 220 > [3,] 102 320 > [4,] 103 420 > [5,] 104 520 > [6,] 105 620 And yes, my first quest

Re: [R] Conditionally Removing data from a vector

2008-11-21 Thread Philipp Pagel
> I am having trouble removing entries from a vector based on the value of the > vector and another object value. It works in my pseudo test run: > > DEV=400 > #Y > CANDS=c(100:105) > #Z > DEVS=c(120,220,320,420,520) > if(DEV>DEVS) >(CANDS=CANDS[which(DEV CANDS

[R] Conditionally Removing data from a vector

2008-11-21 Thread PDXRugger
I am having trouble removing entries from a vector based on the value of the vector and another object value. It works in my pseudo test run: DEV=400 #Y CANDS=c(100:105) #Z DEVS=c(120,220,320,420,520) if(DEV>DEVS) (CANDS=CANDS[which(DEVTAZDetermine_FEET)