Displaying 1 result from an estimated 1 matches for "ultimet".
Did you mean:
ultimeth
2008 Nov 25
2
creating a new vecotr in a for loop
...currently iterates through for as many times as the length of the x
dataframe. What i would like to do is then is to build a vector for those
values selected. so if vector x = 1,4,7 then "new-y" would equal 4, 2, 3.
x y
1 4
2 7
3 10
4 2
5 21
6 13
7 3
8 90
I need to ultimetly re-sort my x vector based on the values of y but the
function i am using is the subset function and i cant do it without y being
a vector itself and it is currently only a one value object.
#Creates test Candidates Vector
Candidates=c(100,101,102,103,104,105)
#Creates object equaling the number...