Displaying 1 result from an estimated 1 matches for "orginaldata".
Did you mean:
originaldata
2009 Oct 31
1
na.omit leaves cases with NA's intact
Strange, this normally works, but in a recent run, I have a data set in an
xts format, that has a lot of NA's in a few of the variables in the leading
and trailing positions, due to some lagging calculations. Before running an
analysis, I use
newdata<-na.omit(orginaldata)
and normally a
dim(newdata)
shows the fewer rows. Now, for some reason I do this operation and see that
hundreds of rows SHOULD be removed, (I can plainly see the NAs in there) and
even test is.na(orginaldata$variable) and get a clear "TRUE", but the case
still remains after the "...