Structure of ordered factor - What does w mean in "Ord.factor w" ?

Can anybody explain what 'w' means in the R code below?
Thank you in advance

AA <- factor(1:10,levels=1:25, ordered = TRUE)
Ord.factor w/ 25 levels "1"<"2"<"3"<"4"<..: 1 2 3 4 5 6 7 8 9 10

Hi @R-Master. Welcome to RStudio Community.

"w/" is a common abbreviation for "with". So the output simply means that AA is an ordered factor with 25 levels.


Wow, thank you so much~ :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.