Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tempimg

Create temporary nii.gz file


Description

Takes in a object of class nifti, writes it to a temp file, appends .nii.gz as writenii adds it.

Usage

tempimg(
  nim,
  gzipped = TRUE,
  checknan = TRUE,
  check_type = FALSE,
  warn = FALSE,
  drop_dim = TRUE,
  dtype = TRUE,
  ...
)

Arguments

nim

object of class nifti

gzipped

Should file be gzipped? Passed to writenii

checknan

Check for NAs or NaNs

check_type

Check the datatype for an image. Will run datatyper.

warn

Should warnings be displayed if writenii has any? Passed to writenii.

drop_dim

Should drop_img_dim be applied?

dtype

Should datatyper be run before writing? Should override 'check_type'

...

Passed to writenii.

Value

filename of output nii.gz


neurobase

'Neuroconductor' Base Package with Helper Functions for 'nifti' Objects

v1.32.1
GPL-2
Authors
John Muschelli [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.