29 Questions
What is one advantage of R's graphical capabilities?
Easy data visualization and representation
What contributes to the growth of R's environment?
Large user-base and active community
How many packages are available in CRAN (Comprehensive R Archive Network)?
More than 10,000
What kind of calculations can R perform on data objects?
Simple and complex statistical and mathematical calculations
What is distributed computing and how does R utilize it?
Tasks are split between multiple processing nodes to increase efficiency; R uses packages like ddr and multidplyr for distributed computing on large data sets.
How does R support both statistical computing and software development?
With a wide selection of packages and a comprehensive environment
How can you download RStudio Desktop?
Go to the RStudio website, click on 'DOWNLOAD', then click on 'DOWNLOAD' under the 'RStudio Open Source License', and download RStudio Desktop recommended for your computer.
What is displayed in the Environment pane in RStudio?
The Environment pane shows the objects (dataframes, arrays, values, and functions) you have in your workspace.
How can you view the output of your code in RStudio?
You can view the output of your code in the console.
What is the basic syntax for starting an R session?
After R is started, there is a console awaiting for input. At the prompt (>), you can enter values and perform operations.
How can you use R as a calculator?
You can use R as a calculator by entering mathematical expressions like addition, subtraction, multiplication, and division directly in the console.
What function can you use in R to concatenate objects?
You can use the 'c()' function to concatenate objects in R.
How can you create a sequence of integers from 1 to 19 in R?
1:19
What function in R is used to get the first 6 rows of a large matrix or data frame?
head()
Which function is used in R to calculate the sum of values in a vector x?
sum(x)
How do you get the standard deviation of values in a vector x in R?
sd()
What R function is used to list files in the current working directory?
dir()
Which symbol is used as the assignment operator in R to assign a value to a variable?
= or <- or ->
How can you check if a given number is an integer in R?
By using the is.integer() function
What class does a number belong to if it is declared as 'as.integer' in R?
integer
How is a complex value represented in R?
Via the pure imaginary value
What function can be used to concatenate two character values in R?
paste() function
What class does a logical value belong to in R?
logical
What logical operator is used for 'and' in R?
&
What is the result of the expression !v
?
TRUE
How would you use the sprintf()
function to combine a string 'hello' with a number 123?
sprintf("%s %d", "hello", 123)
What is the length of the vector c(5, 7, 9, 11)
in R?
4
Explain the concept of keywords in R programming.
Keywords in R are reserved words that have special meanings and cannot be used as variable names. They are also referred to as 'reserved names'.
What does the next
keyword do in R programming?
next
is used to skip the current iteration in a loop and move to the next iteration.
Explore the strong graphical capabilities of R programming for creating static and interactive visualizations. Learn about the highly active community supporting R with open-source libraries, attracting a growing number of users for continuous development.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free