powered by
Gives the levels of a variable.
Levels(x)
No return value, called for side effects.
A variable for which the different levels should be printed.
Wim Van der Elst
For details, see Van der Elst (2023).
Van der Elst, W. (2024). Regression-based normative data for psychological assessment: A hands-on approach using R. Springer Nature.
data(Substitution) Levels(Substitution$Gender)
Run the code above in your browser using DataLab