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
Get step-by-step solutions from verified subject matter experts
