Datasets should use factors and strings correctly #151

Closed
hadley opened this Issue Dec 10, 2010 · 1 comment

1 participant

@hadley
Owner

No description provided.

@hadley
Owner
diamonds$cut <- ordered(diamonds$cut)
diamonds$color <- ordered(diamonds$color)
diamonds$clarity <- ordered(diamonds$clarity)
save(diamonds, file = "data/diamonds.rda")

midwest$county <- as.character(midwest$county)
midwest$state <- as.character(midwest$state)
save(midwest, file = "data/midwest.rda")

movies$title <- as.character(movies$title)
save(movies, file = "data/movies.rda")

msleep$name <- as.character(msleep$name)
msleep$genus <- as.character(msleep$genus)
msleep$order <- as.character(msleep$order)
save(msleep, file = "data/msleep.rda")
@hadley hadley closed this in 2687543 Apr 12, 2012
@kohske kohske added a commit to kohske/ggplot2 that referenced this issue Apr 27, 2012
@hadley Use factors correctly. Fixes #151 17fdc25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment