I have a huge matrix with multiple columns and rows. It contains numeric values and NAs.
Here is my problem: I have some rows only consisting of NAs meaning they are basically empty. These rows interfere with my further calculations but I also can not just delete them.
Now to my question:
Is there a quick function I can use on my matrix to replace the NAs in these rows with the same single value (lets say 0 or 99, this is irrelevant!)? But -important- ONLY for the rows which are empty (only NAs)?