I would like to search for all values in my data frame
to see if there is any infinite value there because when I run a function I get this error:
Error in optim(apply(X, 2, median, na.rm = TRUE), fn = medfun, gr = dmedfun, :
non-finite value supplied by optim
In addition:
Warning message:
In betadisper(d, rep(1, ncol(as.matrix(d)))) :
Missing observations due to 'd' removed.
I have a huge file and it happens just for some rows but I have no idea why?
Thanks