mni.read.glim.file: Read Linear Model Matrix Text File

Description Usage Arguments Details Value See Also

View source: R/vertex_glim.R

Description

Reads a matrix to be used in testing a linear model, where the matrix is a simple space separated text file.

Usage

1
2
glim.matrix <- mni.read.glim.file(filename, header=FALSE, fill=FALSE,
file.type="space") 

Arguments

filename

The filename of the file containing the matrix.

header

Whether the first row of the matrix contains header information.

fill

Whether to allow for missing values or not.

file.type

Either "space" or "csv".

Details

There are two key ways to control a run of cortical analysis: specification of the input data and specification of the formula. The input data, read by this function, is prepared as a simple text file with one line per subject, and one column per variable. The first column is a filename containing the vertstats information, all subsequent columns are independent variables. Names of factors are allowed, as are missing values if the fill options is set to TRUE. The first line can also optionally be a header, set the header option to TRUE if that is the case. The different columns are separated by either a spaces or commas - space is the default, specify file.type="csv" if the file has comma separated values.

Value

If there is a header, the returned data frame will take the name assigned by the header. If there is no header, the column names will be V1, V2, V3 and so forth.

See Also

mni.mean.statistics. mni.vertex.statistics. mni.write.vertex.stats. mni.build.data.table


BIC-MNI/mni.cortical.statistics documentation built on May 5, 2019, 10:25 a.m.