Displaying 1 result from an estimated 1 matches for "tazdet".
Did you mean:
tazdev
2008 Nov 26
1
Creating a vector based on lookup function
...#TEST TAZ Vector
CANDS=(100:110)
#Test Dev Vector
TAZDEVS=c(120,220,320,420,520,620,720,820,920,1020,1120)
#Creates datframe of CANDS and DEVS
TAZLIST=data.frame(CANDS,TAZDEVS)
for(i in 1:candslength){
cand=cands[i]
#Creates an object based on the value of "cands" in TAZLIST
TAZDet=TAZLIST[TAZLIST$CANDS==cand[i],2]
}
What i would like to see is TAZDet filled with the "cands" corresponding
values found in "TAZLIST"'s second column TAZDEVS, they would be
120,520,920. So if things worked the way i would like them TAZDet would be
a vector containing th...