Learn R Programming

AnalyzeFMRI (version 1.1-16)

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

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

f.read.nifti.ts(file, x, y, z)

Arguments

file

The .img file

x

The x-coordinate

y

The y-coordinate

z

The z-coordinate

Value

A vector containing the time series

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.

See Also

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

Examples

Run this code
# NOT RUN {
f.read.nifti.ts(system.file("example-nifti.img", package="AnalyzeFMRI"),30,30,10)
# }

Run the code above in your browser using DataLab