search for: narandom

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

Did you mean: arandom
2007 Dec 15
1
modify a data.frame within a function
...values. I want to do it within a function, but can not assign the modified column back into the data frame. It was easy and successful without a function, so I suspect the problem is the call of the single column within the function. removedata<-function(datafull,var.removed) { attach(datafull) NArandom<-rnorm(n=length(var.removed), mean=0, sd=1) for (i in 1:length(var.removed)) if(NArandom[i]>0) var.removed[i]<-"NA" datamiss<<-datafull detach(datafull) } -- Yuval Sapir, PhDResearcherInstitute of Evolution, Haifa UniversityHaifa, Israel 3190‎ [[alternative HTML...
2006 Oct 27
1
What to do with a inconsistency in rank() that's in S+ and R ever since?
...desire e.g. ties.method = "average" except for NAs!? I am aware that the prototype behaves like this and R ever since behaves like this, however to me this appears very unfortunate. In order not to 'break' existing code, what about adding ties.methods {"NAaverage"|"NArandom"|"NAmax"|"NAmin"} that behave consistently? Best regards Jens Oehlschl?gel P.S. Please cc. me, I am not on the list > version _ platform i386-pc-mingw32 arch i386 os...