When I use ifelse function with is.table or is.matrix I get unwanted results. Whereas if I use an if statement I get the resu
ifelse
is.table
is.matrix
if