course_num
, how many variables are being recorded here?00:30
00:30
00:30
A. data
B. variable
C. constant
D. observational unit
00:20
A. They are synonyms for the same thing.
B. R is the language; RStudio is the tool we’ll use to run and write code.
C. RStudio is the newer edition of the R language.
00:30
A. Wrap the command in parentheses ()
.
B. Wrap the commend in curly braces {}
.
C. Use the assignment arrow and provide a name for your output to the environment.
D. Drag and drop the command into your environment.
00:30
A. vector
B. variable
C. numeric
D. factor
E. data frame
00:20
05:00
25:00
Answer at pollev.com
.
00:15
Answer at pollev.com
.
00:15
05:00
Working in a new .qmd file allows you to save your code for later.
Download the taxonomy-tutorial.qmd
file in the Taxonomy of Data Ed Thread.
Click the “Upload” button in the bottom right corner of RStudio and upload the file.
25:00
What will happen here?
Answer at pollev.com/<name>
00:30
What will happen here?
Answer at pollev.com/<name>
01:00
What will happen here?
Answer at pollev.com/<name>
01:00
What will happen here?
Answer at pollev.com/<name>
01:00
Images are composed of pixels (this image is 1520 by 1012)
The color in each pixel is in RGB
Each band takes a value from 0-255
This image is data with 1520 x 1012 x 3 values.
Consider the following images which are our data:
If you were to put the data from these (8 x 8 grayscale) images into a data frame, what would the dimensions of that data frame be in rows x columns?
A vector is the simplest structure used in R to store data. It can be created using the function c()
.
Create a vector named vec
with the even integers between 1 and 10 as well as the number 99 (six elements total).
Find the sum of that vector.
Find the max of that vector.
Take the mean of that vector and round it to the nearest integer.
These should all be solved with R code. If you don’t know the name of a function to use, you could hazard a guess by looking for a help file (e.g. ?sum
) or google it.
You can combine vectors into a data frame using data.frame()
1
Create a new .qmd file, name it, and save it.
Insert a new code cell.
Create three vectors, name
, hometown
, and sibs_and_pets
that contain observations on those variables from 6 people in this class.
Combine them into a data frame called my_classmates
.