[R] Trimmed Sample
I know about the trimmed mean function. Is there a function that trims values of an array, vector ect cheers -- View this message in context: http://r.789695.n4.nabble.com/Trimmed-Sample-tp2328139p2328139.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Colour Point Plot
Simple question. How do you change the standard plotting function so that points are solid and can have a pretty colour? Thanks for the help -- View this message in context: http://r.789695.n4.nabble.com/Colour-Point-Plot-tp2321433p2321433.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] TRUE/FALSE
Here is my code # determine the DDOA measurements for(e in 1:numSensors) { for(f in 1:numSensors) { if((combos[e,f]==1) { # true distance between each sensor and the target truedistance[e]<-sqrt((targetX-sensorX[e])^2+(targetY-sensorY[e])^2) # add an error that has a N(0, sigma^2) distribution truedistance[e]<-(truedistance[e]+rnorm(1, 0, sigma)) } #truedistance[1] <- (truedistance[1]+50) #determine DDOA measurements (reference sensor is sensor #1 here) index<-1 for(e in 1:numSensors) { if(e!=r) { measurement[index]<-(truedistance[f]-truedistance[e]) index <- (index+1) } } } if(combos[e,f]!=1) { } } combos is just a matrix containing 1's and 0's This error keeps appearing Error in if (combos[e, f] == 1) { : missing value where TRUE/FALSE needed Any ideas? -- View this message in context: http://r.789695.n4.nabble.com/TRUE-FALSE-tp2318668p2318668.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] For Loop
I have some code that is working. The code calculates the error from the real vale when it does a run. The error in metres in called errorxy I want to do 10 runs of the code and everytime it does a run I want to an output of the errorxy, so that it can form an array. I am guessing I should use a for loop around the entire set of code? Any help? -- View this message in context: http://r.789695.n4.nabble.com/For-Loop-tp2314593p2314593.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.