This package has a function that takes the factor as input and reverses the order of input in the parameters.

INSTRUCTIONS to use the package factRordering

Import devtools

library(devtools)

Installing package

install_github("asadrana83/factRordering")
library(factRordering)

Using package's fRev

See the following example to check how package can be used.

x <- factor(c(3,1,3,3,2,1,1,3,2))
levels(x)
levels(fact_order_rev(x))

The expected results should reverse the output of the input parameters



asadrana83/factRordering documentation built on May 12, 2019, 3:43 a.m.