menu

R Programming Basics


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

min()

range()

max()

summary()


2. Which of the following functions is used to create a density plot in R Programming?

density()

plot()

hist()

boxplot()


3. Which of the following functions is used to rename columns in a data frame in R Programming?

rename()

rename_cols()

colnames()

set_colnames()


4. Which of the following functions is used to create a histogram in R Programming?

barplot()

plot()

hist()

boxplot()


5. Which of the following functions is used to create a bar plot in R Programming?

barplot()

plot()

hist()

boxplot()


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

=

==

<=

=>


7. Which of the following functions is used to create a box plot in R Programming?

barplot()

plot()

hist()

boxplot()


8. Which of the following functions is used to create a scatter plot in R Programming?

plot()

scatter()

scatterplot()

scatter_plot()


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

read.csv()

read.table()

read_excel()

read.csv2()


10. Which of the following functions is used to convert a factor variable to a character variable in R Programming?

as.factor()

as.character()

factor()

character()