rknx / AvrBsT

Statistical analysis of bacterial dispersal in R
https://anujs.com.np/avrbst
1 stars 0 forks source link

Reduce function #1

Closed rknx closed 4 years ago

rknx commented 4 years ago
Reduce(
    function(x, y) ifelse(x ==1, 1, y),
    row,
    accumulate = T
)
apply(data, 1, function(row){
    ...
})
data_accu <- do.call(rbind, ...)