Question: consider the R code i

consider the R code

i <- 1

value <- 7

while(i < 62){

sd(Data1[ ,i])

value <- i + 4

}

a. Based on this code, what will the value of value be after the loop runs once?

b. If you were to attempt to actually run this code, the loop will run forever. Why? (4 points)

c. If this loop were running correctly, what would the loop be attempting to do? Support your answer with examples from the code. (3 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!