R How to use lapply properly

0 votes
Hi folks,

I have a question concerning the lapply function in R. I want to calculate cohen`s kappa (fast) for a data frame with 100+ variables (2 raters) (which looks like this (v1_r1; v1_r2; v2_r1;...). Do you know a way to solve this problem? Or know another method?

I tried /and failed with this: lapply(dat, kappa2(dat %>% select (dat[seq(2, length(dat), 2)], dat[seq(3, length(dat), 2)])))

Merci beaucoup!!!!
May 21, 2021 in Data Analytics by amelieeeee

edited Mar 4 30 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP