Quiz 7 - Intro to R programming Flashcards
What are the pros of R? (give 3)
- Powerful
- Shows rows and columns of data
- Free
What is RStudio
the mediator between us and R; it is a user-friendly software
What are the 3 main parts of R Studio
- Script editor
- Console
- Workspace
What is tidyverse in R?
A collection of R packages made for data science and analysis
ggplot - explain
the input that allows the plotting of data
What is the con of the console window?
Doesn’t save the files - is a ‘one time’ thing
How to store a certain variable into R studio (write)
x <- ______
Run through making variables (x and y) for equations
Multiplication
Adding
Division
x * y
x + y
x / y
What are the 4 basic data types and give examples
- Numeric - a <- 20
- Character - b <- speech_data
- Logical - c <- TRUE (vs UNTRUE)
- Complex - d <- 2 + 3x
What is the crucial factor about Character data (aka
You need ‘quotes’ in any line
Which one(s) will throw an error? Why?
x <- 3
y <- ‘‘Sunday’’
z <- TRUE
A. x+x B. x+y C. z+1
B. x+y
C. z+1
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
D. not possible to answer
- you can’t classify that info just 1 way
What is a vector in RStudio + give examples
a type of data structure used to store collections of the same type of data