Skip to contents

The factor column resulting from the TukeyHSD test is sorted by its row name, these are renamed with the name of the phases and finally, they are sorted, in decreasing way, by the average response values (column 1).

Usage

fn_hsd(hsd_out, Phases_legend)

Arguments

hsd_out

A TukeyHSD test table, comes from the result of the Tukey_HSD function

Phases_legend

A character vector that has the name or number of maturity stages defined by the user

Value

A vector with the names of the phases arranged in descending order of the average response.

Examples

  if (FALSE) {
    hsd_out <- tmp
    Phases_legend <- c("I", "II", "III", "IV", "V", "VI")

    ejemplo <- fn_hsd(hsd_out,Phases_legend)
  }