Beginner R
Q17 / 100

How do you create a function in R that adds two numbers?

Correct! Well done.

Incorrect.

The correct answer is A) add <- function(a, b) { a + b }

A

Correct Answer

add <- function(a, b) { a + b }

Explanation

Functions in R are created using "function(args) { body }" and assigned to a name with "<-".

Progress
17/100