sample_dat: Sample Data

sample_datR Documentation

Sample Data

Description

A sample dataset modified from the dataset starwars in tidyverse.

Usage

data(sample_dat)

Format

a tibble(dataframe)

Details

Generated by the following syntax: sample_dat = starwars %>% mutate(haircolor = ifelse(hair_color %in% c('black', 'brown', 'none'), hair_color, 'other')) %>% select(height, sex, gender, mass, haircolor) %>% filter(!is.na(gender))

Examples

data(sample_dat)
head(sample_dat)
str(sample_dat)

JiyueQin/tidyreport documentation built on Nov. 24, 2024, 9:24 a.m.