Follow the above steps, but now person 2 do steps 1 - 6 for the function below, and person 1 do step 7. Person 2 should begin by first clicking Pull (down arrow) to update your local repository with the remote changes.
Complete function so that it divides a given input, x, by the value 2.
Person 2 should make the change in code, and person 1 should manage the pull request.
div2 <- function(x){
return()
}
div2(20) # Should return the value 10
Follow the above steps, but now person 2 do steps 1 - 6 for the function below, and person 1 do step 7. Person 2 should begin by first clicking Pull (down arrow) to update your local repository with the remote changes.
Complete function so that it divides a given input, x, by the value 2. Person 2 should make the change in code, and person 1 should manage the pull request.