powered by
ratioAllComb calculates all possible pairwise ratios between all individual calues of x and y.
ratioAllComb
ratioAllComb(x, y, maxLim = 10000, silent = FALSE, callFrom = NULL)
(numeric) vector, numerator for constructing rations
(numeric) vector, denominator for constructing rations
(integer) allows reducing complexity by drawing for very long x or y
(logical) suppress (less important) messages
(character) allow easier tracking of message(s) produced
(numeric) vector with all ratios
# NOT RUN { set.seed(2014); ra1 <- c(rnorm(9,2,1),runif(8,1,2)) ratioAllComb(ra1[1:9],ra1[10:17]) boxplot(list(norm=ra1[1:9],unif=ra1[10:17],rat=ratioAllComb(ra1[1:9],ra1[10:17]))) # }
Run the code above in your browser using DataLab