Home
1.
Which language is R an open source version of?

R is an open source reworking of the S programming language.

2.
Name at least two programming paradigms in which you can write R code.

Choices include imperative, object-oriented, and functional.

3.
What is the command to create a vector of the numbers from 8 to 27?

The command is 8:27

4.
What is the name of the function used to search for help within R?

help.search (which does the same as ??)

5.
What is the name of the function used to search for R-related help on the Internet?

RSiteSearch

6.
What is the operator used for integer division?

%/%

7.
How would you check if a variable, x, is equal to pi?

all.equal(x, pi) or, even better, isTRUE(all.equal(x, pi))

8.
Describe at least two ways of assigning a variable

At least two of the following:
1. <-
2. + =
3. + <<-
4. assign

9.
Which of the five numbers 0, Inf, -Inf, NaN, and NA are infinite?

Just Inf and -Inf

10.
Which of the five numbers 0, Inf, -Inf, NaN, and NA are considered not missing?

0, Inf, and -Inf