Similar to python zip, 'vzip' takes input vectors and merges them together by their input order and index. A simple example is two numeric vectors, A = c(1,1,1) and B = c(2,2,2). The output of vzip(A,B) would simply be a single vector of c(1,2,1,2,1,2). Any number of vectors can be input, but each input vector must be of the same length. Output vector class depends on input vector consensus.
any number of vectors to zip together. Each vector must be of equal length.
vzip returns a single vector from input vectors, in order of input and
index in each vector.
Christopher Nobles, Ph.D.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.