ComenzarEmpieza gratis

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?

Este ejercicio forma parte del curso

Writing Efficient R Code

Ver curso

Instrucciones del ejercicio

  • Load the parallel package.
  • Using the detectCores() function, store the number of cores in an object called no_of_cores.
  • Print no_of_cores.

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Load the parallel package
___

# Store the number of cores in the object no_of_cores
no_of_cores <- ___

# Print no_of_cores
___
Editar y ejecutar código