f.read.nifti.ts: read in one voxel time series

Description Usage Arguments Details Value See Also Examples

View source: R/niftiFMRI.R

Description

Given a 4D NIFTI .img/.hdr image pair or a .nii file this function can read in the time series from a specified position in 3D into a vector.

Usage

1

Arguments

file

The .img file

x

The x-coordinate

y

The y-coordinate

z

The z-coordinate

Details

Given a 4D NIFTI .img/.hdr image pair or a .nii file this function can read in the time series from a specified position in 3D into a vector.

Value

A vector containing the time series

See Also

f.read.nifti.slice, f.read.nifti.slice.at.all.timepoints, f.write.nifti,

Examples

1
f.read.nifti.ts(system.file("example-nifti.img", package="AnalyzeFMRI"),30,30,10)

Example output

Loading required package: R.matlab
R.matlab v3.6.2 (2018-09-26) successfully loaded. See ?R.matlab for help.

Attaching package: 'R.matlab'

The following objects are masked from 'package:base':

    getOption, isOpen

Loading required package: fastICA
Loading required package: tcltk
Loading required package: tkrplot
Warning messages:
1: no DISPLAY variable so Tk is not available 
2: loading Rplot failed 
[1] 1

AnalyzeFMRI documentation built on Oct. 5, 2021, 5:06 p.m.