num [1:10] 11 25 18 4 1 5 17 22 3 9
[1] 10
2025-02-04
Review: General Programming
Know how to:
num [1:10] 11 25 18 4 1 5 17 22 3 9
[1] 10
Quick-Info: how many values are below 10?
Update values: turn all values of 3 into a 4:
make all square values in x
negative:
Write a function is_square
that takes a numeric vector x and returns a vector of TRUE/FALSE for each element in x (TRUE: element is square, FALSE: element is not a square number)
update square values by their negative number
x
[1] 11 25 18 4 1 5 17 22 4 9
is_square(x):
[1] FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE TRUE
updated x:
[1] 11 -25 18 -4 -1 5 17 22 -4 -9
in Canvas, accept the Github Classroom link to homework #3
Clone the repository to your local machine
Render the file index.qmd
Not all statements that execute are correct (Part 1: fix mistakes)
Part 2: write a decoder
Part 3: Decode the secret message!
Continue working on Homework 3
Self Assessment quiz due Thursday