I was trying to replace the na values in all rows of a column with a specific character. The column name is called 'morph'. I tried to replace na values with the character 'nul' and the R code I tried is:
data$morph[which(is.na(data$morph))] <- nul.
An error turned out indicating that
"Error: object 'nul' not found".
What's wrong with my code and how to fix it? Thanks for answering my questions.