# libraries
library(tidyverse)
library(wooldridge)
library(here)
# affairs dataset
data("affairs")
affairs = affairs |>
select(male, age, years_married = yrsmarr,
kids, relig, educ, occup, marriage_rating = ratemarr,
n_affairs = naffairs) |>
tibble()
# save data
save(affairs, file = here("data", "affairs.rda"), compress = "xz")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.