I have a problem in my dataframe.
I have several values with -Inf entries. When I want to use the cor-function, I always get NA because of that. So I want to replace the -Inf with NA before I use the cor-function, but I cant find a way to replace them successfully.
I tried
dat[mapply(is.infinite, dat)] <- NA
but it did not work.
Any ideas how to solve this?