2024-02-07 20:56:51 +01:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/mfi_calc.R
|
|
|
|
\name{multi_rev}
|
|
|
|
\alias{multi_rev}
|
2024-10-10 14:13:16 +02:00
|
|
|
\title{Reverses relevant MFI subscores}
|
2024-02-07 20:56:51 +01:00
|
|
|
\usage{
|
|
|
|
multi_rev(d, var)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{d}{data frame or tibble}
|
|
|
|
|
|
|
|
\item{var}{numeric vector of indices of columns to reverse}
|
|
|
|
}
|
|
|
|
\value{
|
|
|
|
data.frame or tibble depending on input
|
|
|
|
}
|
|
|
|
\description{
|
2024-10-10 14:13:16 +02:00
|
|
|
Reverses relevant MFI subscores
|
2024-02-07 20:56:51 +01:00
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
# rep_len(sample(1:5),length.out = 100) |> matrix(ncol=10) |> multi_rev(2:4)
|
|
|
|
}
|