2 ms·
Like this: db<-data.frame(replicate(44,1:5)) likertcat <- as.ordered(c("Not at all", "To a small extent", "To some extent", "To a moderate
by nograpes 12y ago
Like this:
db<-data.frame(replicate(44,1:5))
likertcat <- as.ordered(c("Not at all", "To a small extent", "To some extent",
"To a moderate extent", "To a large extent"))
db[ ,9:44] <- lapply(db[,9:44], function(x) likertcat[x])
- houshuang 12y agoThank you. As said, there are always many ways of doing things in R.