convert_binary_datatype: Convert Binary Data Type

View source: R/convert_binary_datatype.R

convert_binary_datatypeR Documentation

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

convert_binary_datatype()
convert_binary_datatype('NIFTI_TYPE_INT32')
testthat::expect_error(convert_binary_datatype('NIFTI_TYPE_BLAH'))

neuroconductor/gifti documentation built on Feb. 6, 2023, 6:52 a.m.