Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

Suppose X is the vector c(1:10). Which R code will swap the values of the 3rd element of X and the 7th element of X?

X[c(3,7)] <- X[c(7,3)]
replace(X, c(3, 7), c(7,3)
X[7] <- X[3]; X[3] <- X[7]
X[3] <- X[7]; X[7] <- X[3]
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon