Learn R Programming

survivoR (version 2.3.5)

add_lgbt: Add LGBTQIA+ status

Description

Adds the LGBTQIA+ flag to the data frame.

Usage

add_lgbt(df)

Value

Data frame with the LGBTQIA+ flag added.

Arguments

df

Data frame. Requires castaway_id and version_season.

Examples

Run this code

library(survivoR)
library(dplyr)

get_cast("US47") |>
  add_lgbt()

Run the code above in your browser using DataLab