search for: parx

Displaying 2 results from an estimated 2 matches for "parx".

Did you mean: part
2004 Oct 25
1
Ref: Variable scope or function behaviour or array reassign
...lt;- of type array with original values Step 2 for (ctr in 1:10) { # my problem here the both x and y still show the original values from step 1 # in spite of making changes to the old values of the arrays x and y in the function function (x,y) ??? } step3 output < - function(parX,parY){ Variables for New X and Y newx <- array(parX, dim=c(1,length(parX))) newy <- array(parY, dim=c(1,length(parY))) # make some calculation and updated some arrays element in the newX and # #newY # finally assign the global original...
2012 Oct 19
1
Optimization in R similar to MS Excel Solver
Dear Colleagues, I am attempting to develop an optimization routine for a river suspended sediment mixing model. I have Calcium and Magnesium concentrations (%) for sediments from 4 potential source areas (Topsoil, Channel Banks, Roads, Drains) and I want to work out, based on the suspended sediment calcium and magnesium concentrations, what are the optimal contributions from each source area to