Quiz 7 - Intro to R programming Flashcards

1
Q

What are the pros of R? (give 3)

A
  1. Powerful
  2. Shows rows and columns of data
  3. Free
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is RStudio

A

the mediator between us and R; it is a user-friendly software

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 main parts of R Studio

A
  1. Script editor
  2. Console
  3. Workspace
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is tidyverse in R?

A

A collection of R packages made for data science and analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ggplot - explain

A

the input that allows the plotting of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the con of the console window?

A

Doesn’t save the files - is a ‘one time’ thing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to store a certain variable into R studio (write)

A

x <- ______

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Run through making variables (x and y) for equations
Multiplication
Adding
Division

A

x * y
x + y
x / y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 4 basic data types and give examples

A
  1. Numeric - a <- 20
  2. Character - b <- speech_data
  3. Logical - c <- TRUE (vs UNTRUE)
  4. Complex - d <- 2 + 3x
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the crucial factor about Character data (aka

A

You need ‘quotes’ in any line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which one(s) will throw an error? Why?
x <- 3
y <- ‘‘Sunday’’
z <- TRUE
A. x+x B. x+y C. z+1

A

B. x+y
C. z+1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A researcher named a variable as “february”. What is the most likely data type?

A. numeric
B. character
C. logical
D. not possible to answer

A

D. not possible to answer

  • you can’t classify that info just 1 way
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a vector in RStudio + give examples

A

a type of data structure used to store collections of the same type of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly