search for: myrange

Displaying 5 results from an estimated 5 matches for "myrange".

Did you mean: yrange
2015 Jun 23
3
Plans to improve reference classes?
Could of requests: 1) Is there any example or writeup on the difficulties of extending reference classes across packages? Just so I can fully understand the issues. 2) In what sorts of situations does the performance of reference classes cause problems? Sure, it's an order of magnitude slower than constructing a simple environment, but those timings are in microseconds, so one would need a
2009 Mar 15
2
Testing for Inequality à la "select case"
...00 Once the interval is determined, the values in x are multiplied by the percentages applying to the range in the 3rd column. If the result is less than the fourth column, then the latter is used. For values of x falling in the last interval, 250,000 must be used. My best attempt at it in R: MyRange <- function(x){ range_aux = ifelse(x<=20000, 1, ifelse(x<=100000, 2, ifelse(x<=250000, 3, ifelse(x<=700000, 4, ifelse(x<=1000000, 5,6))))) percent = c(0.65, 0.4, 0.3, 0.25, 0.2, 0) minimum = c(0, 14000, 40000, 7...
2015 Jun 23
0
Plans to improve reference classes?
> 1) Is there any example or writeup on the difficulties of extending > reference classes across packages? Just so I can fully understand the > issues. Here's a simple example: library(scales) library(methods) MyRange <- setRefClass("MyRange", contains = "DiscreteRange") a_range <- MyRange() a_range$train(1:10) # Error in a_range$train(1:10) : could not find function "train_discrete" where train_discrete() is an non-exported function of the scales package called by the train(...
2012 Aug 19
1
radarchart axis scaling
Hello I created a radar chart using the function of ?radarchart? from the ?fmsb? package in R software. The matrix I am using is as follows: x<-c(c(rep(4.5,7),c(rep(0,7)), 3.34, 3.28, 1.37, 1.12, 3.52, 4.07, 3.66)); a<-matrix(x,nrow=3, ncol=7,byrow=T) I would like to show the range of c(0,5) on the axis instead of c(0,100) or c(0,1). I really appreciate it if any body can guide me.
2009 Aug 23
2
difficult "for"
Hi, My english isn't brilliant and my problem is very difficult to describe but I try ;) My first question is: May I write loop "for" like this or similar - for (i in sth : sth[length(sth)], k in sth_else : length(sth_else) ) - I'd like to have two independent conditions in the same loop "for". My secound question depend on program below. I'd like to write every