[R] function optimization

2011-06-15 Thread navishkumarb
Hello I would like to optimize a function which is as follows. nc.adj <- function(nc, G) { x = a + G + (b/(G^2 + (c - G)^2)) - nc return(x) } Can I just know how to get the optimized values of a,b,c for given G and nc using optim/optimize function. -- View this message in context: ht

[R] Array Data

2010-08-18 Thread navishkumarb
Hello Can any one let me know how to delete a value from an array and then push back rest of the remaining elements up into an array. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Array-Data-tp2329643p2329643.html Sent from the R help mailing list archive at Nabble.c

[R] Array Comparision

2010-08-17 Thread navishkumarb
Hello. Can I just know how to compare two different arrays, but take only the elements from first array (both arrays are multidimensional). Its just opposite of "intersect" option in R. Thanks in advance -- View this message in context: http://r.789695.n4.nabble.com/Array-Comparision-tp23281