Learn R Programming

R4dfp (version 0.2-4)

R4dfp.Recycle: Reload a 4dfp MRI Image.

Description

Reloads a loaded 4dfp MRI image with different options.

Usage

R4dfp.Recycle(object,save=TRUE,direct.read=FALSE,direct.write=FALSE)

Arguments

object
Object of class ‘R4dfp’.
save
Save the loaded image before doing anything else if direct.read and direct.write weren't used for the old image.
direct.read
Pass direct.read to R4dfp.Load when reopening.
direct.write
Pass direct.write to R4dfp.Load when reopening.

Value

Object of class ‘R4dfp’.

Details

Closes the specified 4dfp image and reopens it with the specified options. This will invalidate the provided variable; therefore, you must assign the return back to the variable you pass as object.

This function is useful for making a copy of the data for an image loaded with direct.read, and also for creating a new image and subsequently gaining direct access to the image file.

See Also

R4dfp.Load R4dfp.Save R4dfp.Copy R4dfp.Close

Examples

Run this code
#create an image and reload it with direct writing
myimage <- R4dfp.Blank333("newimage.4dfp.ifh")
myimage <- R4dfp.Recycle(myimage,direct.write=TRUE)

Run the code above in your browser using DataLab