Assignment in R: In R, we use arrow notation (<-) to make an assignment. An assignment defines an R object that will hold the data you specify.  For example, you type and execute x <- 30+20, R recognizes that the arrow (i.e., <-) as an assignment operator. It first evaluates the expression on the right-hand side of the arrow (30+20), which resolves to 50. Then, R creates an object named x and makes x to store the value at the right-hand side (i.e., 50).  Note that once the assignment is complete, R does not remember how x was generated. The object x only stores the value, not the expression that generated it). Suppose you executed the following lines of code (one by one). What output would be shown when the last line of code is executed? a <- 10 b <- 20/a a <- 5 bSingle choice

A

2

B

4

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!