menu

R Programming Basics

R Programming Basics - Important Points


6. Which of the following functions is used to extract a subset of a data frame in R Programming?

A. select()

B. filter()

C. slice()

D. subset()

Discuss Work Space

Answer: option d

Explanation:

The subset() function is used to extract a subset of a data frame in R Programming.

7. Which of the following functions is used to calculate the mean of a vector in R Programming?

A. sd()

B. median()

C. var()

D. mean()

Discuss Work Space

Answer: option d

Explanation:

The mean() function is used to calculate the mean of a vector in R Programming.

8. Which of the following functions is used to calculate the standard deviation of a vector in R Programming?

A. sd()

B. median()

C. var()

D. mean()

Discuss Work Space

Answer: option a

Explanation:

The sd() function is used to calculate the standard deviation of a vector in R Programming.

9. Which of the following functions is used to generate random numbers in R Programming?

A. sample()

B. runif()

C. rnorm()

D. All of the above

Discuss Work Space

Answer: option d

Explanation:

All of the above functions are used to generate random numbers in R Programming.

10. Which of the following functions is used to find the maximum value in a vector in R Programming?

A. min()

B. range()

C. max()

D. summary()

Discuss Work Space

Answer: option c

Explanation:

The max() function is used to find the maximum value in a vector in R Programming.


Subscribe for Latest Career Trends
Subscribe Now
Use AI and ChatGPT for Career Guidance

Unlock Your Future

Join Now
Worried for Placements in 2024?

Join FAST TRACK Course

Join Now
Supercharge Your SUCCESS

Join All in One Placement Mock Tests-2024

Join Now