sample_dat | R Documentation |
A sample dataset modified from the dataset starwars in tidyverse.
data(sample_dat)
a tibble(dataframe)
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))
data(sample_dat)
head(sample_dat)
str(sample_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.