add_demogs {survivoR}R 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()


[Package survivoR version 2.3.5 Index]