Use rowMeans as it is vectorized library(dplyr) evs <- evs %>% mutate(intp.trust = rowMeans(across(v1:v6), na.rm = TRUE)).
確定! 回上一頁