search for: 9999s

Displaying 2 results from an estimated 2 matches for "9999s".

Did you mean: 9999
2009 Aug 17
3
Replacing NA values in one column of a data.frame
Dear all, I'm trying to replace NA values with -9999 in one column of a data frame. I've tried using is.na and the testdata[testdata$onecolumn==NA] <- 9999 approach, but whilst neither generate errors, neither result in -9999s appearing - the NAs remain there! I'd be grateful for any advice on what I'm doing wrong or any other suitable approaches. Many thanks, Steve _________________________________________________________________ oticons.
2005 Feb 03
9
subset data.frame with value != in all columns
I am trying to extract rows from a data.frame based on the presence/absence of a single value in any column. I've figured out how to do get the positive matches, but the remainder (rows without this value) eludes me. Mining the help pages and archives brought me, frustratingly, very close, as you'll see below. My goal: two data frames, one with -99 in at least one column in each row,