Skip to content

Should the diamonds dataset factor variables be unorderd? #5910

Closed
@davidhodge931

Description

@davidhodge931

The diamonds dataset is full of ordered variables

head(ggplot2::diamonds, 1)
#> # A tibble: 1 × 10
#>   carat cut   color clarity depth table price     x     y     z
#>   <dbl> <ord> <ord> <ord>   <dbl> <dbl> <int> <dbl> <dbl> <dbl>
#> 1  0.23 Ideal E     SI2      61.5    55   326  3.95  3.98  2.43

Created on 2024-05-28 with reprex v2.1.0

R 4 datascience doesn't recommend using these.
image
https://r4ds.hadley.nz/factors

Subsequently, should the diamonds dataset factor variables be unorderd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions