Description Usage Arguments Value Examples
View source: R/original/Additional file 2.R View source: R/simulation.R
Simulates linear trends with p fraction decreasing and (1-p) fraction increasing.
1 | simulate_linear(n, n.samples, p)
|
n |
Number of trends to generate. |
n.samples |
Number of timepoints within each trend. |
p |
Proportion of trends decreasing (vs. increasing). |
A dataframe with each row representing a metabolite concentration time-course scaled between 0 and 1. The corresponding x variables are assumed to be equally spaced between 0 and 1 i.e. x <- seq(0, 1, length.out=n.samples).
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.