The current return value of pcr_test is a tidy data.frame. I added an argument tidy with default TRUE so it returns the same. When tidy = FALSE the return value, is a list of the original test object for each gene; lm when the required test = 'lm' and htest when test = 't.test' or test = 'wilcox.test'. This enables all sort of things to be done to the original test object. Below is an example with calling anova(), residuals() and fitted on the lm() object.
The current return value of
pcr_test
is a tidydata.frame
. I added an argumenttidy
with defaultTRUE
so it returns the same. Whentidy = FALSE
the return value, is alist
of the original test object for each gene;lm
when the requiredtest = 'lm'
andhtest
whentest = 't.test'
ortest = 'wilcox.test'
. This enables all sort of things to be done to the original test object. Below is an example with callinganova()
,residuals()
andfitted
on thelm()
object.