I'm trying to create a matrix(nx1) I need to compare the value line by line to all matrix value depending on condition
For eaxample Matrix_xx$a[[1]]<-ifelse(Matrix_xx$b[[1]]<=input4$c && as.numeric(Matrix_xx$c[[1]])+5>input4$c, input4$p, NA)
I need to copy and paste the value from input4 to the matrix_xx's a cloumn depending on condition. If it works, I'll use a for loop to apply for the whole matrix?
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire