View source: R/utils-convert-type.R
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
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)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.