Beginner R
Q39 / 100

Which assignment creates a global variable from inside a function in R?

Correct! Well done.

Incorrect.

The correct answer is B) x <<- 5

B

Correct Answer

x <<- 5

Explanation

The "<<-" superassignment operator assigns a value in an enclosing (often global) environment rather than the local function scope.

Progress
39/100