menu

R Programming Basics

R Programming Basics - Important Points


1.

Which of the following is NOT a data type in R Programming?

A. Integer

B. Float

C. Double

D. Character

Discuss Work Space

Answer: option c

Explanation:

R Programming does not have a data type called "Double," it uses "numeric" instead.


2. Which of the following functions is used to install packages in R Programming?

A. library()

B. install.packages()

C. require()

D. package.install()

Discuss Work Space

Answer: option b

Explanation:

The install.packages() function is used to install packages in R Programming.

3. Which symbol is used to assign values to variables in R Programming?

A. =

B. ==

C. <=

D. =>

Discuss Work Space

Answer: option a

Explanation:

In R Programming, the "=" symbol is used to assign values to variables.

4. Which of the following functions is used to read data from a CSV file in R Programming?

A. read.csv()

B. read.table()

C. read_excel()

D. read.csv2()

Discuss Work Space

Answer: option a

Explanation:

The read.csv() function is used to read data from a CSV file in R Programming.

5. Which of the following operators is used to concatenate two vectors in R Programming?

A. +

B. *

C. &

D. c()

Discuss Work Space

Answer: option d

Explanation:

The "c()" function is used to concatenate two vectors 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