Re: [R] subset and na.rm not really suppressing values

2014-01-24 Thread peter dalgaard
subset.data.frame() does not have an na.rm argument! -pd On 23 Jan 2014, at 00:58 , Jeff Johnson wrote: > I have a dataset "mydf" with a field EMAIL_ADDRESS. When importing, I > specified: > mydf <- read.csv(file = extract, header = TRUE, stringsAsFactors = FALSE, > na.strings=c("NA","")) > >

Re: [R] subset and na.rm not really suppressing values

2014-01-22 Thread Jeff Newmiller
I don't think na.rm is a valid at parameter for the subset function. I would normally use the is.na function to logically test for NA values. I also don't know where your VALID_EMAIL variable is coming from. a <- subset(mydf, !is.na(EMAIL_ADDRESS)) The na.strings argument to read.csv and friend

[R] subset and na.rm not really suppressing values

2014-01-22 Thread Jeff Johnson
I have a dataset "mydf" with a field EMAIL_ADDRESS. When importing, I specified: mydf <- read.csv(file = extract, header = TRUE, stringsAsFactors = FALSE, na.strings=c("NA","")) I've also tried setting na.strings= c("NA","","") but I don't know if it's appropriate to put there. I'm running a <-