nerdexam
Dell-EMC

E20-007 · Question #127

E20-007 Question #127: Real Exam Question with Answer & Explanation

Sign in or unlock E20-007 to reveal the answer and full explanation for question #127. The question stem and answer options stay visible for context.

Question

A data scientist is given an R data frame, "empdata", with the columns Age, Salary, Occupation, Education, and Gender. The data scientist would like to examine only the Salary and Occupation columns for ages greater than 40. Which command extracts the appropriate rows and columns from the data frame?

Options

  • Aempdata[empdata$Age > 40,c("Salary","Occupation")]
  • Bempdata[c("Salary","Occupation"),empdata$Age > 40]
  • Cempdata[Age > 40,("Salary","Occupation")]
  • Dempdata[,c("Salary","Occupation")]$Age > 40

Unlock E20-007 to see the answer

You've previewed enough free E20-007 questions. Unlock E20-007 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full E20-007 Practice