Learn R Programming

neuroim2 (version 0.8.5)

read_header: read header information of an image file

Description

read header information of an image file

Usage

read_header(file_name)

Value

an instance of class FileMetaInfo

Arguments

file_name

the name of the file to read

Examples

Run this code
hdr <- read_header(system.file("extdata", "global_mask_v4.nii", package = "neuroim2"))
dim(hdr)                  # image dimensions
hdr@header$pixdim[5]      # TR in seconds

Run the code above in your browser using DataLab