[R] matrix manipulation question

peter dalgaard
Fri, 27 Mar 2015 09:38:26 -0000

On 27 Mar 2015, at 09:58 , St?phane Adamowicz <stephane.adamowicz at
avignon.inra.fr> wrote:

> data_no_NA <- data[, complete.cases(t(data))==T]

Ouch! logical == TRUE is bad, logical == T is worse:

data[, complete.cases(t(data))]


--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com