Description Usage Arguments Value Examples
View source: R/calcComparison.R
Compares two numeric vectors by passing comparison in a string
1 | calcComparison(v_n_1, v_n_2, s_comp)
|
v_n_1 |
a numeric vector. Length must be the same as the length of |
v_n_2 |
a numeric vector. Length must be the same as the length of |
s_comp |
type of comparison must be one of the following |
a logical vector of the comparison of v_n_1 and v_n_2.
1 2 3 4 5 | v_n_1 <- rep(0,3)
v_n_2 <- c(0, -1.1, 1.1)
calcComparison( v_n_1, v_n_2, "==")
calcComparison( v_n_1, v_n_2, ">")
calcComparison( v_n_1, v_n_2, ">=")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.