powered by
vector.vmode creates a vector of a given vmode and length
vector.vmode
vector.vmode(vmode = "logical", length = 0) boolean(length = 0) quad(length = 0) nibble(length = 0) byte(length = 0) ubyte(length = 0) short(length = 0) ushort(length = 0)
virtual mode
desired length
a vector of the desired vmode initialized with 0
Function vector.vmode creates the vector in one of the usual storage.modes (see .rammode) but flags them with an additional attribute 'vmode' if necessary. The creators can also be used directly:
storage.modes
.rammode
boolean
logical
quad
nibble
byte
ubyte
short
ushort
integer
single
double
complex
raw
character
as.vmode, vector
as.vmode
vector
# NOT RUN { vector.vmode("byte",12) vector.vmode("double",12) byte(12) double(12) # }
Run the code above in your browser using DataLab