~/ learn/ afm-112/ cards/ Index prefixes, row names, truncated frames
1 of 9

In R, type the expression that returns every row of orders whose amount is over 900 (all columns).

In R, type the expression that returns every row of orders whose amount is over 900 (all columns).

Answer

orders[orders$amount > 900, ]

Rows 5 and 10 — their original row names — with order_id 1005 and 1010. The trailing comma means "all columns"; Module 11 makes it a rule.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/19f65a38-849a-4154-88f1-f87a606087d6/flashcard utf-8 LF