Description Usage Arguments Value Examples
Coerce an Object to a Cluster Object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | as.cluster(x, ...)
## S3 method for class 'cluster'
as.cluster(x, ...)
## S3 method for class 'list'
as.cluster(x, ...)
## S3 method for class 'SOCKnode'
as.cluster(x, ...)
## S3 method for class 'SOCK0node'
as.cluster(x, ...)
## S3 method for class 'cluster'
c(..., recursive = FALSE)
|
x |
An object to be coerced. |
... |
Additional arguments passed to the underlying coercion method.
For |
recursive |
Not used. |
An object of class cluster
.
c(...)
combine multiple clusters and / or cluster nodes into one
cluster returned as an of class cluster
. A warning will be produced if
there are duplicated nodes in the resulting cluster.
1 2 3 4 5 6 | options(parallelly.debug = TRUE)
cl1 <- makeClusterPSOCK(2, dryrun = TRUE)
cl2 <- makeClusterPSOCK(c("n1", "server.remote.org"), dryrun = TRUE)
cl <- c(cl1, cl2)
print(cl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.