Find out whether you need a really, really basic R course or if you're okay to do some data processing already.
🔥3 playsPublished
0 of 20 answered
Stacked
You're confused about data.frames. Which of the following does not help?
1/20
Choose one
> ?base
> ?data.frame
> library(help="data.frame")
> library(help="base")
If you wanted to install R, where would you download it from?
2/20
Choose one
r-project.org
cpan.org
rstudio.com
cran.org
How many data types are there in R?
3/20
Choose one
1
3
6
9
A true/false value in R is held in which data-type?
4/20
Choose one
logical
illogical
binary
raw
Which of the following does not contain numbers?
5/20
Choose one
numeric
integer
raw
character
What is a matrix?
6/20
Choose one
A data structure with the same number of rows and columns
A data structure with columns of equal length that can contain different data types from each other
A data structure with columns of equal length that must all contain the same data type
A vector of list objects
What is a data.frame?
7/20
Choose one
A data structure with the same number of rows and columns
A data structure with columns of equal length that can contain different data types from each other
A data structure with columns of equal length that must all contain the same data type
A vector of list objects
The following code creates what?
> c(a=c(1,2),b=c(3,4))
8/20
Choose one
A data.frame with 2 rows and 2 columns
A numeric vector with named values
A factor vector
A list
Which of the following would you use to read a table in a file called "table.csv"?
9/20
Choose one
> read.table.csv()
> read.csv("table.csv")
> "table.csv"
> table.csv()
Which of the following does NOT assign the value "foo" to the variable f?
10/20
Choose one
> f <- "foo"
> "foo" -> f
> f = "foo"
> f <= "foo"
Which of the following do you use to load a package in R?
11/20
Choose one
> install.packages()
> load()
> library()
> source()
You're not sure if a function "furbies" is available... which of the following would tell you for sure?
12/20
Choose one
> ?furbies
> exists("furbies")
> furbies
[all of these]
Which of the following is NOT an R data type?
13/20
Choose one
logical
complex
raw
factor
Which of the following is NOT an R data structure?
14/20
Choose one
factor
array
list
character
> df = data.frame(a=c(1,2,3),b=c(4,5,6))
Which two commands give you the number 4?
15/20
Choose all that apply
> df[1,2]
> df$b[1]
> df[2,1]
> df[2:1]
> df[1:2]
read.delim() gives you what?
16/20
Choose one
vector
data.frame
factor
character
Which of the following does NOT call a function?
17/20
Choose one
> ?help
> ??help
> help
> help()
What does this mean?
1:10
18/20
Choose one
A numeric vector containing the numbers 1 to 10
A numeric vector containing the numbers 1 and 10
An integer vector containing the numbers 1 to 10
An integer vector containing the numbers 1 and 10
By default, what will happen when a column containing mostly numbers but some text is read by read.table() ?
19/20
Choose one
The text will get replaced by zeroes
The text will get replaced by NA()
The column will be a factor
The column is illegal and will be removed
What is R?
20/20
Choose one
R is a free software environment for statistical computing and graphics
R is a family of operating systems for x86-based computers
R is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism
R is an integrated family of products that helps to address the entire analytical process, from planning and data collection to analysis, reporting and deployme…