tompkins <- tompkins |>
mutate(home_age = if_else(year_built < 1960, "Before 1960", "Newer than 1960"))
- 1
- Create a new column of data
- 2
-
Save the modified data frame as
tompkins
Lecture 4
Cornell University
INFO 5001 - Fall 2024
September 10, 2024
tompkins <- tompkins |>
mutate(home_age = if_else(year_built < 1960, "Before 1960", "Newer than 1960"))
tompkins
Avoid long lines of code
Label code chunks
label
s.Use the tidyverse style guide and styler
Render, commit, and push regularly
ae-02
ae-02
(repo name will be suffixed with your GitHub name).renv::restore()
to install the required packages, open the Quarto document in the repo, and follow along and complete the exercises.|>
, can be read as “and then”.+
, and indent the next line.