Hi,
I am performing some calulations in a script, and would like to run a t-test on the outputs of both conditions. I would like to know if there is a way for me to tell R to run the script 'n' number of times (without a loop), and if I can append the output of the conditions (Control vs Treatment) into two vectors called control
and treatment
, whose lengths would be equal to the number of times the calculation was run. Below is an example of what I wish to do.
control = geneA %in% control_tpm
control = length(control[control == TRUE])
treatment = geneA %in% treatment_tpm
treatment = length(treatment[treatment == TRUE])
When n = 100
control = c(100 outputs of control
)
treatment = c(100 outputs of treatment
)
Thanks,
Vinay
Edit: I found this
post, but it has to be run as a separate script, I would like to run it multiple times in the same script