Raw Message
Message-ID: <ih142e$ufq$1@dough.gmane.org> Date: 2011-01-17T10:01:46Z From: Johannes Graumann Subject: Finding NAs in DF Hi, What is an efficient way to take this DF data.frame(A=c(1,2,NA,NA),B=c(1,NA,NA,4)) and get c(NA,"TWO","BOTH","ONE") as the result, where NA corresponds to a row without "NA"s, TWO indicates NA in the second and ONE in the first column. Thanks for any pointers. Joh