mergeVectors | R Documentation |
This function merges two vectors to a data.fram, using the names as key.
mergeVectors(x,y)
x |
The first vector. |
y |
The second vector. |
Just a basic merging of vectors, in case that the order of the vector differs, but the names intersect.
A merged data.frame with the two vectors.
Daniel Fischer
x <- 1:10 names(x) <- letters[1:10] y <- 1:10 names(y) <- sample(letters[1:10]) mergeVectors(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.