How do we access elements in R?
What will be the output of log(-20) when executed on an R console?
Which of the following methods creates a vector of repeated values?
Which of the following statements creates a mosaic plot?
Which of the following functions is used to find the correlation matrix?
A function, together with an environment, makes up what is called a function closure.
The _____
function allows you to modify the error behavior so that you can browse the function call stack.
What will be the output of the following R code snippet?
> lm <- function(x) { x * x }
> lm
What will be the output of the following R code?
f <- function(num) {
hello <- "Hello, world!\n"
chars <- nchar(hello) * num
}
meaningoflife <- f(3)
print(meaningoflife)