Check arithmetic before building a price

Before building a pricing calculation, an analyst checks how R evaluates the following arithmetic expressions. Complete the table with the exact integer stored in each object.


R
a <- 12 + 18 / 3
b <- (12 + 18) / 3
c <- 4 * 3 ^ 2
d <- (4 * 3) ^ 2
ObjectStored value
a
b
c
d

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: