missing data are represented as 9999.00 , 9999.0 and 9999.000 in a text file.
if I specify in the:
Rcmdr->data->import->missing data indicator as 9999,nothing will be assigned to NA.
but when I assigned to 9999.0 then only the values of 9999.0 are assigned to NA.
is there any-idea on how to assign different values to NA within Rcmdr.
Here is the code added:
Dataset <-
read.table("C:/Users/BRSa12002_L4_d.txt",
header=TRUE, sep=",", na.strings="-9999.00", dec=".", strip.white=TRUE)
From
?read.tablewe learn that argument na.strings takes a vector. Thus, you can use this to assign several different values as NA.