Friedman test with ordinal data

Does anyone have coding suggestions for running a friedman test? I have categorical behavior data (which is ordinal) but I am not sure the correct code for assigning ranking these behaviors in R and then running the friedman and post hoc thereafter

A post was merged into an existing topic: can anyone help run a friedman post hoc test?