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",""))
>
>
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
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 <-
3 matches
Mail list logo