compute_total {Ymisc} | R Documentation |
the bilateral (Left + Right) measures.
Description
compute_total() creates new columns that are the bilateral (Left + Right) measures.
Usage
compute_total(
data = sample_data,
left_hemisphere = "lh",
right_hemisphere = "rh",
separator = "_",
ID = "ID",
hemisphere = "prefix",
start,
end
)
Arguments
data |
The wide format data |
left_hemisphere |
The prefix or suffix that indicates the left hemisphere in the variable names |
right_hemisphere |
The prefix or suffix string that indicate the right hemisphere in the variable names |
separator |
A character vector that separates characters in the variable names. |
ID |
The column of identifiers. |
hemisphere |
The character vector that indicates whether a hemisphere indicator in the variable names is a prefix or suffix. |
start |
The column that specifies the starting point of a set of variables to calculate the bilateral (L+R) measures. |
end |
The column that specifies the endpoint of a set of variables to calculate the bilateral (L+R) measures. |
Value
The data with the bilateral (L+R) measures.
Examples
data(sample_data)
compute_total(sample_data,
left_hemisphere="lh",
right_hemisphere="rh",
separator="_",
ID="ID",
hemisphere="prefix",
start="lh_Thalamus",
end="rh_AccumbensArea")
[Package Ymisc version 0.1.0 Index]