35.3k views
4 votes
Which of the following statements is correct about using built in functions?

a. We can take advantage of R to get the mean, median, and standard deviation of our dataset very quickly
b. When we run weekend==1, we are telling R to change the value of variable weekend to 1
c. R automatically corrects our mistakes, so spelling and case-sensitivity are never an issue
d. We can always trust that R will import our dataset properly, there is no need for us to check using dim or by printing the first row of the dataset

User Gijswijs
by
7.8k points

1 Answer

5 votes

Final answer:

The correct statement is that we can use R to get the mean, median, and standard deviation quickly, but R does not autocorrect mistakes, and it is important to verify data imports.

Step-by-step explanation:

Among the statements provided, the correct one about using built-in functions in R is that we can take advantage of R to get the mean, median, and standard deviation of our dataset very quickly. R has built-in functions like mean(), median(), and sd() that facilitate statistical computations. However, when we use the expression weekend==1, we are not changing the value of the variable but checking where its value equals 1, often used in subsetting data. Additionally, R does not autocorrect mistakes; it is crucial to be precise with spelling and case as R is case-sensitive. Moreover, the correct importing of a dataset cannot be taken for granted; it is a good practice to verify the dimensions of a dataset with dim() and inspect the initial rows using functions like head() to ensure it has been read correctly.

User Ahmad Baraka
by
8.8k points