On this pageRIterationsforf <- function(v){ #code}x <- 1:10for (val in x) { print(paste("Iteration number ", val))}Copywhilei <- 1while(i <= 10) { print(paste("Iteration number ", i)) i = i + 1}CopyFunctionssimple functionf <- function(){ #code goes here}Copy