There’s no escape from the bird…
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? Answer at pollev.com
.
01:00
There are three things that “variable” could be referring to:
For each of the following scenarios where age could be a variable, choose the most appropriate taxonomy according to the Taxonomy of Data.
Answer at pollev.com
.
01:00
20:00
05:00
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
What will happen here?
Answer at pollev.com/<name>
01:00
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, with hazard a guess by looking for a help file (e.g. ?sum
) or google it.
05:00
Working in a new .qmd file allows you to save your code for later.
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
.
06:00