View source: R/functions_for_RGWAS.R
parallel.compute | R Documentation |
Function to parallelize computation with various methods
parallel.compute(
vec,
func,
n.core = 2,
parallel.method = "mclapply",
count = TRUE
)
vec |
Numeric vector including the values that are computed in parallel. |
func |
The function to be applied to each element of 'vec' argument. This function must only have one argument. |
n.core |
Setting n.core > 1 will enable parallel execution on a machine with multiple cores. This argument is not valid when 'parallel.method = "furrr"'. |
parallel.method |
Method for parallel computation. We offer three methods, "mclapply", "furrr", and "foreach". When 'parallel.method = "mclapply"', we utilize When 'parallel.method = "furrr"', we utilize When 'parallel.method = "foreach"', we utilize We recommend that you use the option 'parallel.method = "mclapply"', but for Windows users, this parallelization method is not supported. So, if you are Windows user, we recommend that you use the option 'parallel.method = "foreach"'. |
count |
When count is TRUE, you can know how far RGWAS has ended with percent display. |
List of the results for each element of 'vec' argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.