search for: unmanipulated

Displaying 1 result from an estimated 1 matches for "unmanipulated".

Did you mean: manipulated
2005 Feb 25
3
restoring vector v from v[-i]
Hi I have a little function that takes a vector v and an integer i. I want to manipulate v[-i] (to give v.new, say) and then put (unmanipulated) v[i] back into the appropriate place. For example, f <- function(v,i){ v.new <- v[-i]+10 return(c(v.new[1:(i-1)],v[i],v.new[i:length(v.new)])) } (my example is adding 10 to v[-i], but the real version is the solution of a complicated function involving a call to Solve(A,b)) Functio...