Intermediate R
Q76 / 100

What does "names(df) <- c("a", "b", "c")" do for a data frame df with three columns?

Correct! Well done.

Incorrect.

The correct answer is B) Renames the existing columns of df to a, b, and c in order

B

Correct Answer

Renames the existing columns of df to a, b, and c in order

Explanation

Assigning to names(df) replaces the column names of the data frame with the provided vector, in positional order.

Progress
76/100