View source: R/standardize_qsm.R
standardize_qsm | R Documentation |
Standardizes QSM variable names and ordering across different QSM software
standardize_qsm(cylinder)
cylinder |
QSM cylinder data frame |
Renames supported QSM software output columns to be consistent. All names are lower case and underscore delimited. See the dictionary vignette for a detailed description of column names. A consistent QSM format ensures maximum compatibility when analyzing QSMs made with different software. This function can be run either before or after the update_cylinders function has been run, or at any stage.
Returns a data frame
## TreeQSM Processing Chain
file <- system.file("extdata/QSM.mat", package = "rTwig")
qsm <- import_qsm(file)
cylinder <- qsm$cylinder
cylinder <- standardize_qsm(cylinder)
str(cylinder)
## SimpleForest Processing Chain
file <- system.file("extdata/QSM.csv", package = "rTwig")
cylinder <- read.csv(file)
cylinder <- standardize_qsm(cylinder)
str(cylinder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.