Learn R Programming

survivoR (version 2.3.5)

add_demogs: 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)

Value

Data frame with castaway added to it.

Arguments

df

Data frame. Requires castaway_id.

Examples

Run this code

library(survivoR)
library(dplyr)

get_cast("US47") |>
  add_demogs()

Run the code above in your browser using DataLab