I am trying to use the identical
function in an if statement my variable x
and temp[,7]
are char classes but I could not get the y
as output. I could not figure out the problem here. Could you help me please?
for (i in 1:nrow(temp)){
if(identical(x,temp[i,7]) == TRUE)) {
y<-(temp[i,c(2,7,15)])
}
return(y)
}
Aucun commentaire:
Enregistrer un commentaire