Hi All,

Quite a strange request, but I wondered if it was possible in R to impose an order on a numeric variable?

So, for example, I have been previously working with my variable as an ordinal factor with three levels.

```
data$x1 <- factor(data$x1, ordered = TRUE, levels = c("3", "2", "1"))
```

As you can see, the ordinal factor variable is also a number on a Likert-like scale, where 3 is perceived as worse than 1.

Yet, one of the routines I've been working with recently only accepts numeric variables. Therefore, I wondered if it was possible to transform it into 'as.numeric', but command that 3<2<1?