R Programming QB
R Programming QB
PART – B
1. Apply different control flow structures in R to assess their impact on program
efficiency. How do if-else, for loops, and while loops perform in various scenarios, and
which is most suitable for specific tasks?
2. Explain how default values are used in R programming when defining functions. How
do default values affect the behavior of functions when arguments are omitted or not
provided?
3. Demonstrate how to create a 3D plot in R using sample data. How would you use
functions from libraries like plotly, rgl, or scatterplot3d to visualize three-dimensional
data, and what factors would you consider to ensure the plot is effectively presented?
4. Evaluate the performance of various time series forecasting models, such as ARIMA,
using an R dataset.
5. How would you analyze a time series dataset in R to check for stationarity using
functions from the tseries package? What visualizations (e.g., plot.ts(), ggplot2) would
you use to support your analysis?
6. Describe in detail about the implementation of principal compenent analysis (PCA)
7. Write a R program to create scatter plot, box plot, bar chat and explain the parameters
of each graph with neat examples.
8. Illustrate about linear models in R with suitable example.
9. Apply the concept of Exploratory data analysis in R using Diamond Dataset and
perform the following:
List the first 6 rows of the Dataset
List the dimensions of the Dataset
Visualize the data using any pairwise combination of variables
Create correlation matrix and round with 2 decimal places
Identify the missing values in the Dataset
10. Construct a R program to print numbers between 1 to 100 and skip the numbers which
are divisible by 3 and 5.
11. Explain with example about how to create 3D plots using R Programming.
12. Explain in detail about different types of clustering in R programming with suitable
examples.