1. 学ぶ
  2. /
  3. コース
  4. /
  5. Writing Efficient R Code

Connected

演習

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?

指示

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