Skip to content

Instantly share code, notes, and snippets.

@ocaoimh
Last active July 14, 2021 16:59
Show Gist options
  • Save ocaoimh/24785a2de9a55fc8bb2c900d4dd5a596 to your computer and use it in GitHub Desktop.
Save ocaoimh/24785a2de9a55fc8bb2c900d4dd5a596 to your computer and use it in GitHub Desktop.
# Remove full stops and replace with them with blanks
names(LXP.data.items) <- gsub("\\.", " ", names(LXP.data.items))
#ordering levels
#Q1
LXP.data.items$`Access my timetable`<- factor(LXP.data.items$`Access my timetable`, levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q2
LXP.data.items$`Particpate in collaborative activities forums peer assessment group work ` <- factor(LXP.data.items$`Particpate in collaborative activities forums peer assessment group work ` , levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q3
LXP.data.items$`Have badges and leaderboards` <- factor(LXP.data.items$`Have badges and leaderboards`, levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q4
LXP.data.items$`Have my exercises automatically adapted to my preferences and ability` <- factor(LXP.data.items$`Have my exercises automatically adapted to my preferences and ability` , levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q5
LXP.data.items$`Access my coursework on a cellphone` <- factor(LXP.data.items$`Access my coursework on a cellphone` , levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q6
LXP.data.items$`Access my courses offline`<- factor(LXP.data.items$`Access my courses offline`, levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
#Q7
LXP.data.items$`Create and share my portfolio` <- factor(LXP.data.items$`Create and share my portfolio` , levels = c("Very unimportant","Quite unimportant", "Neither important nor unimportant","Important","Very important"), ordered = T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment