inst/samples/func.R

{
 x = 1:10
 y = x + 3 + rnorm(length(x))
}

{
 fun = function(x, y) {
    glm( y ~ x)
 }
}

{
  sapply(1:10, function(x) glm(x + i))
}

Try the CodeDepends package in your browser

Any scripts or data that you put into this service are public.

CodeDepends documentation built on May 2, 2019, 4:19 a.m.