I am currently working on an assignment for a population dynamics class. I input the data and code to generate a matrix but every time I run the chunk it displays all the matrix data as NA. I'm just not sure what to change

```
frog_mat <- matrix(data=NA, nrow=100, ncol=2)
frog_mat[.1] <- 1:100
frog_mat[1.2] <- P
for (xx in 1:99){
frog_mat[xx+1,2] <- frog_mat[xx,2]*(1+d_patches)
}
frog_mat[,2] < 5
```