Description Usage Arguments Details Author(s) Examples
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.
1 2 |
d |
data.frame or matrix or object coercible to a matrix. Row contents will be combined into a single output vector. |
sep |
character used to separate collapsed contents. |
fill |
character used to fill empty values within the coerced object. |
vcollapse
returns a single vector from input data.frame or matrix
where row contents have been combined or collapsed, as with
'paste(..., collaspe = "")'.
Christopher Nobles, Ph.D.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.