You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create the projection matrixA<-matrix(c(0, 0, 1,
0.75, 0, 0,
0, 0.9, 0.9), nrow=3, byrow=TRUE)
# store it in the tibble as a replicated listinputs<- tibble(t=1:20,
A= rep(list(A), 20))
# create the one line functionproject_matrix<-function(N0, A){
# need to add [[1]] to "unlist" AA[[1]] %*%N0# matrix multiply and return result
}
head(iterate(inputs, N0= c(1,1,1), project_matrix))
Shouldn't have to use [[1]] after A in the popfun
The text was updated successfully, but these errors were encountered:
Shouldn't have to use [[1]] after A in the popfun
The text was updated successfully, but these errors were encountered: