read.fMRI.data: Reads .nii and .img/.hdr file data and save to neuR-object

Description Usage Arguments Value

View source: R/read.fMRI.data.R

Description

Reads .nii and .img/.hdr file data and save to neuR-object

Usage

1
2
3
read.fMRI.data(path = ".", pattern = "s.*\\.img", files = NULL,
  mask = "constant", info = NULL, silent = FALSE, exclude.files = c(),
  header.file = NULL, max.nas.prop.per.voxels = NULL)

Arguments

path

"."

pattern

"s.*\.img"

files

NULL

mask

it can be: a file name, a 3D array of appropriate size, a string equal to 'constant' (look for non constant voxels) or a scalar (values equal to this number are out of the brain)

info

NULL

silent

FALSE

exclude.files

vector of ids of files to exclude

header.file

name of the file from which the head should be read. if NULL (default) the head of the first file (not excluded by exclude.files) is used

max.nas.prop.per.voxels

(NULL by default, no actions taken) is the maximum proportion of NAs allowed among replications in anny given voxel.

Value

a neuR-object


livioivil/neuR documentation built on May 21, 2019, 6:43 a.m.