I have a large data frame which has more than 500 rows and 40 columns like;
dataframe <- data.frame(ID=c("ID1","ID2","ID3","..."), column1=c(1,NA,0,1), column2=c(1,0,0,1),column3=c(1,NA,NA,NA),... = c (1,0,1,1))
Now in column 3, there are three 'NA' values, and I want to replace column3 of ID2 to numerical value '1'.
Please tell me the good way to do so.