Trace a stored subtotal

An office manager runs all these R commands in the order shown. The unit price is in Canadian dollars, and items is the number ordered.


R
unit_price <- 64
items <- 5
subtotal <- unit_price * items
items <- 7
print(subtotal)


What happens at the final command?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More R Programming Basics Questions: