inst/examples/student_scripts/qn01_scr_02.R

rf <- function(n) {
  x <- c()
  for(i in 1:n) {
    x[i] <- (runif(1)/4)^(1/3)
  }
  return(x)
}

X <- rf(1e3)

Try the autoharp package in your browser

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

autoharp documentation built on Nov. 13, 2021, 1:06 a.m.