Learn R Programming

gifti (version 0.8.0)

convert_binary_datatype: Convert Binary Data Type

Description

Converts a data type to the size and what for readBin, necessary for Base64Binary and GZipBase64Binary formats

Usage

convert_binary_datatype(
  datatype = c("NIFTI_TYPE_UINT8", "NIFTI_TYPE_INT32", "NIFTI_TYPE_UINT32",
    "NIFTI_TYPE_FLOAT32")
)

Arguments

datatype

data type from GIFTI image

Value

List of length 2: with elements of size and what

Examples

Run this code
# NOT RUN {
convert_binary_datatype()
convert_binary_datatype('NIFTI_TYPE_INT32')
testthat::expect_error(convert_binary_datatype('NIFTI_TYPE_BLAH'))
# }

Run the code above in your browser using DataLab