1. Learn
  2. /
  3. Courses
  4. /
  5. Parallel Programming in R

Exercise

Iterate and filter

As a data consultant, you receive data in all shapes and formats. A client has just transferred a 40-gigabyte CSV file containing data on higher studies institutions across the world.

The junior analysts cannot parse the data correctly due to lack of memory, and there is no budget for the compute resources required to handle the whole dataset. Your current analysis only requires analysis of institutes in Australia. The file path of the CSV is already stored in the variable filepath. You have been asked to implement an efficient reader for this data. parallel, doParallel, foreach, and iterators packages have been loaded for you.

Instructions

100 XP
  • Use an iterator to read lines from filepath.
  • Combine the results using an appropriate function to create a data frame.
  • Specify the parallel operator.