Hi, and welcome.
A reproducible example, called a reprex would improve my confidence in one possible solution:
no_na_ <- year[!is.na(year$Factor), ]
which will remove all NA valued entries from the year
object.
Hi, and welcome.
A reproducible example, called a reprex would improve my confidence in one possible solution:
no_na_ <- year[!is.na(year$Factor), ]
which will remove all NA valued entries from the year
object.