~/ learn/ afm-112/ cards/ Four messages, four causes
1 of 7

In R, typing `Orders$amount` prints `Error: object 'Orders' not found`. The cause is:

In R, typing `Orders$amount` prints `Error: object 'Orders' not found`. The cause is:

Answer

No object of that exact name exists — a typo, or the line never ran

Options - A. No object of that exact name exists — a typo, or the line never ran - B. The package that defines the $ operator has not been loaded with library() - C. The amount column is character, not numeric - D. A comma is missing between two arguments Why - A. Correct — R is case-sensitive; the frame is orders. The same message appears before read.csv has been run. - B. A missing package gives "could not find function", not "object not found". - C. A chr column fails only in arithmetic, with "non-numeric argument". - D. A missing comma gives "unexpected symbol".

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/0b1f3149-b3dd-4e1e-9a90-9421bc9c55cf/flashcard utf-8 LF