I am analysing the network canvas data for my project. There are a number of variables that I need to recode to factor variable in a single column. For example, ethnicity/gender.
The code (as printed on this site) has run successfully. I have defined the cat to factor function, created the variable list and applied the function to this. This has creating columns with the relevant factor structure (e.g. a “Gender” column with factors 0 male, 1 female, 2 transgender etc), but data has not been pulled through for each case it simply records an NA for each person.
Is there any update to this code or something i have done wrong?