parallel.r

Rマスター

Explorer

C40
C++40
C#40
Dart40
Go40
Java40
JavaScript40
Kotlin40
Objective-C40
Perl40
PHP40
Python40
R
初級10
中級10
上級10
エキスパート5
マスター5
tidyverse_model.r
s4_method.r
shiny_app.r
parallel.r
rlang_quo.r
Ruby40
Rust40
Shell40
Swift40
TypeScript40
parallel.r
Click to focus
1
2
3
4
5
6
7
8
library(parallel)
cl <- makeCluster(4)
results <- parLapply(cl, 1:100, function(i) {
 set.seed(i)
 mean(rnorm(1000))
})
stopCluster(cl)
unlist(results) %>% hist()
0WPM0%0:000/162(0%)|Ln 1, Col 1
UTF-8R

関連する練習問題