in Education by
You can time ________ expressions by wrapping them in curly braces within the call to system.time(). (a) smaller (b) longer (c) error (d) grater This question was addressed to me by my college director while I was bunking the class. I want to ask this question from R Profiler in section Profiling, Simulation and Data Analysis of R Programming Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct option is (b) longer Explanation: If your expression is getting pretty long (more than 2 or 3 lines), it might be better to either break it into smaller pieces or to use the profiler.

Related questions

0 votes
    ________ is a systematic way to examine how much time is spent in different parts of a program. (a) ... Analysis of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    The elapsed time may be ________ than the user time if your machine has multiple cores/processors. (a) smaller ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    system.time function returns an object of class _______ which contains two useful bits of information. (a) ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    R comes with a ________ to help you optimize your code and improve its performance. (a) debugger (b) ... Analysis of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    ________ modify a ggplot or theme object by adding on new components. (a) +.gg (b) -.gg (c) /.gg ... Data Analysis of R Programming Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    _______ divides the time spend in each function by the total run time (a) by.sum (b) by.total ( ... Data Analysis of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    Parallel processing is done via __________ package can make the elapsed time smaller than the user time. (a) ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    ________ is used for translating between qplot and base graphics. (a) translate_qplot_base (b) translate_qplot_gpl (c ... R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    ________ is used to create a plot to illustrate patterns of missing values. (a) ggmissplot (b) ggmissing (c ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    ________ generate random Normal variates with a given mean and standard deviation. (a) dnorm (b) rnorm (c) ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    ________ is used for relative sizing of theme elements. (a) rel (b) size (c) relative (d) timrinterval ... Analysis of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    ________ add new variables/columns or transform existing variables. (a) mutate (b) add (c) apped (d) ... Analysis of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    _________ time is time charged to the CPU(s) for the R expression. (a) elapsed (b) user (c) response ... Data Analysis of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    The _______ function computes the time (in seconds) needed to execute an expression. (a) system.timedeb() (b ... of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
...