L.MM.CMAP1 L.MM.CMAP2 L.MM.CMAP3 L.MM.DML L.MM.DUR1
1 2.7 1.9 1.8 12.8 12.8
2 NA NA NA NA NA
3 12.9 10.7 NA 4.6 7.1
4 6.5 3.0 NA 33.8 40.6
The items in this list are either a double or string("NA") I want to change "NA"s to 0 (double), if any item in the same row is a double. I want to leave "NA" as "NA", if all the items in the same row are "NA".
L.MM.CMAP1 L.MM.CMAP2 L.MM.CMAP3 L.MM.DML L.MM.DUR1
1 2.7 1.9 1.8 12.8 12.8
2 NA NA NA NA NA
3 12.9 10.7 0 4.6 7.1
4 6.5 3.0 0 33.8 40.6
Thank you in advance!