Open tpemartin opened 3 years ago
Parse customerExperience into an ordered factor atomic vector:
customerExperience
customerExperience <- c('very happy','very happy','satisfied','satisfied','satisfied','very happy','bad','bad','satisfied','satisfied','bad','happy','happy','very happy','happy','happy','satisfied','very happy','very happy','satisfied','satisfied','very happy','satisfied','bad','very happy','very bad','very happy','bad','bad','very bad')
https://github.com/raychiu135/110-1-r4ds-main/blob/b309570647949751e4f004dd1530ad7775401494/exercise_4.1.rmd#L2
https://github.com/Vincent23412/110-1-r4ds-main/blob/6073eb167a9d804bbf6184dbbbdf39ba2d6ddaba/20211120.Rmd#L79
https://github.com/410882009/110-1-r4ds-main/blob/91b7830c9a9d586cda5e388c80cc6160b56f4e0d/exercises.Rmd#L217
https://github.com/Jimmy885/110-1-r4ds-main/blob/7065f18bc857764c4f215a9ba0b6f559d7e1c1f8/4.1%204.2#L154
@Vincent23412 Please check:
Ordered factor has to have a setup in BOTH
levels = c("very bad","bad","satisfied ","happy","very happy")
ordered = T
https://github.com/lilyjiang24/110-1-r4ds-main/blob/ec39a741069b9061537ba44ab1c8b1a7d9f86a82/exercise%204.1.Rmd#L3
https://github.com/linttttt/110-1-r4ds-main/blob/758c87b82e32d1eb3efc2d1a7f0a18b9358c86f9/studyCH4(1).Rmd#L143
https://github.com/32119811/110-1-r4ds-main/blob/2ac4ff6c51df9320eb4bf070d322c839f924f572/Exercise%204.1#L2
https://github.com/ken9277/110-1-r4ds-main/blob/b3eab1d599d489c589deb0c06f40fb82fd66f59b/chapter4.1#L5
https://github.com/AmyChen20021003/110-1-r4ds-main/blob/1125c867c08650ca16090d94a0a87fe2f9486696/chapter4excerxise.Rmd#L1
https://github.com/Ann1892/110-1-r4ds-main/blob/7b946b1baf72b85626a8c4fce596273bad59bd35/exercises%20fo%20lesson%204.Rmd#L31
Parse
customerExperience
into an ordered factor atomic vector: