search for: reminaing

Displaying 3 results from an estimated 3 matches for "reminaing".

Did you mean: remianing
2002 Aug 02
1
avoiding "for()" loops: a question?
I have read in several places that one should attempt to avoid for loops whenever possible. In this spirit, I was playing with some code that I have written to improve its efficiency and elegance. The following iteratively drops a column from a data frame and applies a function to the reminaing columns. I replaced this for loop: for (y in 1:dim(x)[2]) my.function (x[,-y]) with this: sapply(1:dim(x)[2], function(y) my.function (x[,-y] )) in an attempt to aviod "for()". However, using system.time() to compare performance of the two functions shows no difference in performan...
2010 Mar 23
3
Optim() Help, Unusual Error
...7,10:39,41:42,65)], Y=Y, n=n) The error I am recieving however states: Error in fn(par, ...) : unused argument(s) (X = list(Air.Platform. = c(1, 1... Where "Air.Platform." is the column name for comp[i,3] used in the first lines of my objective function. I'm not sure how it is reminaing "unused". Thanks for any help. -Paul -- View this message in context: http://n4.nabble.com/Optim-Help-Unusual-Error-tp1679363p1679363.html Sent from the R help mailing list archive at Nabble.com.
2010 Mar 24
0
R-help ordinal regression
...m recieving however states: > Error in fn(par, ...) : > ? unused argument(s) (X = list(Air.Platform. = c(1, > 1... > > Where "Air.Platform." is the column name for comp[i,3] used > in the first > lines of my objective function. > > I'm not sure how it is reminaing "unused".? Thanks for > any help. > > -Paul > -- > View this message in context: http://n4.nabble.com/Optim-Help-Unusual-Error-tp1679363p1679363.html > Sent from the R help mailing list archive at Nabble.com. > > > > ------------------------------ >...