Which R code segment should you use?

Note: This question is part of a series of questions that use the same scenario. For your convenience,
the scenario is repeated in each question. Each question presents a different goal and answer choices,
but the text of the scenario is exactly the same in each question in this series.
Start of repeated scenario
You are developing a Microsoft R Open solution that will leverage the computing power of the database server
for some of your datasets.
You are performing feature engineering and data preparation for the datasets.
The following is a sample of the dataset.

End of repeated scenario.
You need to analyze the dataset without the missing values. The solution must not remove the missing values
from the dataset.
Which R code segment should you use?

Note: This question is part of a series of questions that use the same scenario. For your convenience,
the scenario is repeated in each question. Each question presents a different goal and answer choices,
but the text of the scenario is exactly the same in each question in this series.
Start of repeated scenario
You are developing a Microsoft R Open solution that will leverage the computing power of the database server
for some of your datasets.
You are performing feature engineering and data preparation for the datasets.
The following is a sample of the dataset.

End of repeated scenario.
You need to analyze the dataset without the missing values. The solution must not remove the missing values
from the dataset.
Which R code segment should you use?

A.
rxDataStep(varsToDrop = NULL)

B.
rxDataStep(transforms = ‘removeMissing’)

C.
rxDataStep(transformFunc = ‘removeMissing’)

D.
rxDataStep(removeMissingsOnRead = FALSE, removeMissing = TRUE)



Leave a Reply 0

Your email address will not be published. Required fields are marked *