Good afternoon Guys,
I have a problem with this for cyle
I don't know why it is giving me back a list of NA for all the numbers before the last one.
here's the code,
hope you can help me with this basic issue
A <- c(1,2,5, 45, 5, 34, 34,23 ,23 ,765) ten <- vector() for(i in 0:9) ten_ <- A[i:(i+1)] tene <- sum(ten_) tenemea <- tene / 2 ten[i] <- tenemea