R语言并行处理:future.apply

  1. library("future.apply")
  2. plan(multiprocess) ## Run in parallel on local computer
  3. library("stats")
  4. x <- 1:10
  5. y <- future_lapply(x, FUN = quantile, probs = 1:3/4)