VOOZH about

URL: https://www.geeksforgeeks.org/r-language/check-if-a-factor-is-an-ordered-factor-in-r-programming-is-ordered-function/

⇱ Check if a Factor is an Ordered Factor in R Programming - is.ordered() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Check if a Factor is an Ordered Factor in R Programming - is.ordered() Function

Last Updated : 15 Jul, 2025

is.ordered() function in R Programming Language is used to check if the passed factor is an ordered factor.

Syntax: is.ordered(factor)

Parameters: 

  • factor: Factor to be checked

is.ordered() Function in R Programming Example

Example 1: Demonestration of R - is.ordered() Function 

Output: 

[1] FALSE


Example 2: 

Output: 

[1] TRUE
Comment
Article Tags:

Explore