search for: naexlcud

Displaying 1 result from an estimated 1 matches for "naexlcud".

Did you mean: naexlcude
2010 Feb 11
4
Access variables by string
...r a customized na.exclude() function that I am building, which should only exclude rows that have NA in certain columns. Maybe there is already a function which does exactly what I need, so I'd highly appreciate if someone could point me there ;) My current implementation looks like this: naexlcude <- function(data, varnames) { for(v in varnames){ data = subset(data, !is.na(v)) } data } Best Philipp