R/mfi_calc.R
multi_rev.Rd
Reverses relevant MFI subscores
multi_rev(d, var)
data frame or tibble
numeric vector of indices of columns to reverse
data.frame or tibble depending on input
# rep_len(sample(1:5),length.out = 100) |> matrix(ncol=10) |> multi_rev(2:4)