Displaying 2 results from an estimated 2 matches for "agr3".
Did you mean:
agr
2010 Apr 27
2
Passing values to a function when using apply
...ng
using apply.
apply( veh_drg_animal1[ , c("readCount","gene_length")] ,1, stats() )
here stats is a custom function where I want to pass two parameters
from data frame as shown and a third argument which is constant per
instance of apply.
stats <- function ( arg1,agr2,agr3) {
## computation using three parameters
}
2011 Jan 18
3
error message
I was running a sampling syntax based on a data frame (ago) of 160 rows and
25 columns. Below are the column names:
> names(ago)
[1] "SubID" "AGR1" "AGR2" "AGR3" "AGR4" "AGR5" "AGR6" "AGR7"
"AGR8"
[10] "AGR9" "AGR10" "WAGR1" "WAGR2" "WAGR3" "WAGR4" "WAGR5" "WAGR6"
"WAGR7"
[19] "WAGR8&quo...