Compare the execution times of the commands


Response to the following problem:

Compare the execution times of the three equivalent R commands

a. y=c();for (t in 1:100) y[t]=exp(t)

b. y=exp(1:100)

c. y=sapply(1:100,exp)

using system.time.

Make sure you use enough details to support your answer.

 

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Compare the execution times of the commands
Reference No:- TGS02044342

Expected delivery within 24 Hours