How many cores does this machine have?
The parallel package has a function detectCores() that determines
the number of cores in a machine.
How many cores does this machine have?
Diese Übung ist Teil des Kurses
Writing Efficient R Code
Anleitung zur Übung
- Load the
parallelpackage. - Using the
detectCores()function, store the number of cores in an object calledno_of_cores. - Print
no_of_cores.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Load the parallel package
___
# Store the number of cores in the object no_of_cores
no_of_cores <- ___
# Print no_of_cores
___