The code segment below is intended to swap the values of the variables first and second using a temporary variable, temp.


first <- second
second <- temp

Which of the following can be used to replace < MISSING CODE > so the code segment works as intended?
second <- first

second <-temp

temp <- first

temp <- second