strengejacke / sjlabelled

Working with Labelled Data in R

Home Page:https://strengejacke.github.io/sjlabelled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set_labells() has a label order issue

frankcsliu opened this issue · comments

As shown in the practice, the label "22" in the example code cannot stay in the right place, compared to the result using ordered(labels=).

example data file here-- https://jumpshare.com/v/9P1DetXkvdpuYI9vnAkw+/TEDS2018.rda
example code here-- https://jumpshare.com/v/SRaNm9MfFLY9xvv5MyiH+/issues02.rmd

Do you have a reproducible example?

I did provide the data and code in my post.

I couldn't get the code running.

here is the updated code: https://jmp.sh/HCWv4Vm+/issue.r