Say I have a data frame that looks like this:
sample tissue disease
s1 brain glioblastoma
s2 skin melanoma
s3 liver NA
s4 kidney carcinoma
s5 nerve NA
How would I go about replacing all NAs with "Normal [corresponding tissue]"? E.g., for sample 3, NA would be replaced with "liver normal" and for sample 5 NA would be replaced with "nerve normal".
I appreciate any help!