convert_type: Convert between any 2 supported types

Description Usage Arguments

View source: R/utils-convert-type.R

Description

This converts types directly if available. Otherwise it converts from one type to another by first converting to the built-in 'raw' type and then converting from 'raw' to the destination type

Usage

1
2
3
convert_type(src_vec, src_type, dst_type, endian = c("little", "big"),
  first_bit = c("msb", "lsb"), pad = c("right", "left"),
  verbose = FALSE)

Arguments

src_vec

source values

src_type

source type

dst_type

destination type

endian

'little' or 'big'. default: 'little'

first_bit

'msb' or 'lsb'. default: 'msb'

pad

which side to add padding bits to make a full byte. 'right' or 'left'. default: 'right'

verbose

default: FALSE


coolbutuseless/minitypes documentation built on May 27, 2019, 9:55 a.m.