How do we specify the order of levels in a factor?
Answer
If we want to specify a particular order for the levels, we can do so with additional arguments in the factor function, like this: > xfo = factor( x , levels=c("low","medium","high") , ordered=TRUE )
Tags
#bayes #programming #r #statistics
Question
How do we specify the order of levels in a factor?
Answer
?
Tags
#bayes #programming #r #statistics
Question
How do we specify the order of levels in a factor?
Answer
If we want to specify a particular order for the levels, we can do so with additional arguments in the factor function, like this: > xfo = factor( x , levels=c("low","medium","high") , ordered=TRUE )
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it If we want to specify a particular order for the levels, we can do so with additional arguments in the factor function, like this: > xfo = factor( x , levels=c("low","medium","high") , ordered=TRUE ) > xfo [1] high medium low high medium Levels: low < medium < high
Original toplevel document (pdf)
owner: shihabdider - (no access) - Doing Bayesian Data Analysis, p49
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.