add_demogs: Add demographics

View source: R/add.R

add_demogsR Documentation

Add demographics

Description

Add demographics that includes age, gender, race/ethnicity, and lgbtqia+ status to a data frame with castaway_id.

Usage

add_demogs(df)

Arguments

df

Data frame. Requires castaway_id.

Value

Data frame with castaway added to it.

Examples


library(survivoR)
library(dplyr)

get_cast("US47") |>
  add_demogs()


doehm/survivoR documentation built on March 1, 2025, 3:52 p.m.