Hi!
I got a question concerning a code in R. I get an error if I run the first line, but i get my expected results if i run the second line and skip the first one. However when i delete the first line, i cannot run the second line anymore and get the error :Error in -*tmp*
: invalid argument to unary operator
B<-matrix(,nrow33)
b <- function(B,I) {
I<- diag(33)
B<-(I-C)^(-1)
print(B)
}
result<-b()
result<-as.data.frame(result) #describes the indirect effects