inst/samples/loop.R

x = rnorm(10)
total = 0
for(i in seq(2, length = length(x) - 1))
  if(x[i] > 2*x[i-1])
       total = total + 1
   
duncantl/CodeDepends documentation built on Oct. 22, 2023, 9:16 p.m.