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
View Answer Discuss Work SpaceAnswer: 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()
View Answer Discuss Work SpaceAnswer: 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. =>
View Answer Discuss Work SpaceAnswer: 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()
View Answer Discuss Work SpaceAnswer: 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()
View Answer Discuss Work SpaceAnswer: option d
Explanation:
The "c()" function is used to concatenate two vectors in R Programming.