Description Usage Arguments Examples
View source: R/lipidome_comparison_visualization.R
'calculate_ratio_matrix' takes a vector and calculates the ratio between all elements of a vector.
1 | calculate_ratio_matrix(input_vector, names_vector = 1:length(input_vector))
|
input_vector |
numeric vector. |
names_vector |
vector. Length = length(input_vector). Row and column names for the returnded matrix. Default are numbers 1:length(input_vector). |
1 2 3 | myvector <- c(1712.9583, 1446.4583, 1968.4167, 2124.1250, 2315.7083, 1135.1667, 2227.5000)
mynames <- letters[1:length(myvector)]
calculate_ratio_matrix(myvector, mynames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.