Skip to content
Prev 139498 / 398506 Next

test individual values in rows

If your data.frame is completely numeric, this is easy.

If your data.frame is called df, then do

df[apply(df, 1, function(x) !all(x < 100)),]

Look at ?apply

Best,
Erik Iverson
IAIN GALLAGHER wrote: