Recoding missing values
Regularly, missing data isn't coded as NA in datasets. In SPSS for example, missing values are often represented by the value 99.
num.vec <- c(1, 2, 3, 99, 5)
num.vec
## [1] 1 2 3 99 5
It is possible to directly assign NA using subsetting
num.vec[num.vec == 99]...