Learn R Programming

RVIpkg (version 0.3.3)

Ave_func: Optimizing data from UK Biobank

Description

The Ave_func() can optimize data from UK Biobank(UKB). It will rename field IDs of regional neuroimaging traits to abbreviation names, and then average data of left and right hemispheres of the same field.

Usage

Ave_func(resp.range, type = "all", data)

Value

a dataframe of regional neuroimaging traits with abbreviated field names.

Arguments

resp.range

a numeric vector specifying column range of regional neuroimaging traits.

type

a character string specifying data types of regional neuroimaging traits(i.e. All traits(type='all'), White matter(type='WM'),Gray matter(type='GM') or Subcortical(type='Subcortical'))

data

a data frame contains regional neuroimaging traits with field IDs from UKBB. Default(type='all')

References

Kochunov P, Fan F, Ryan MC, et al. Translating ENIGMA schizophrenia findings using the regional vulnerability index: Association with cognition, symptoms, and disease trajectory (2020). Hum Brain Mapp. 2020;10.1002/hbm.25045. tools:::Rd_expr_doi("10.1002/hbm.25045")

R Core Team (2020). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL https://www.R-project.org/.