I have quite a large dataset that has multiple missing and duplicate values. My first aim is to created a new column (Name
) that consists of three existing columns, e.g. FirstName
, MiddleInitial
, and LastName
.
I have tried:
owners4$Name <- paste(owners4$FirstName, owners4$MiddleInitial, owners4$LastName)
but this results in NA
s being pasted as characters instead of just NAs.
After this I was then going to delete every row that has a NA
in my new column.
Is anyone sure of a way I can achieve this?