1.

Point out the correct statement?(a) The Rprofiler() function starts the profiler in R(b) Using system.time() allows you to test certain functions or code blocks to see if they are taking excessive amounts of time(c) R must not be compiled with profiler support(d) Rprofiler() tabulates how much time is spent inside each functionThe question was asked during an internship interview.This interesting question is from R Profiler topic in portion Profiling, Simulation and Data Analysis of R Programming

Answer»

Right choice is (b) Using system.time() allows you to test certain functions or code blocks to see if they are TAKING excessive amounts of time

Explanation: However, this approach ASSUMES that you ALREADY know where the problem is and can call system.time() on it that PIECE of code.



Discussion

No Comment Found

Related InterviewSolutions